Dennis Schubert
fddec62828
Merge pull request #6894 from SuperTux88/fetch-missing-persons
...
fetch unknown persons to generate url
2016-06-27 15:01:18 +02:00
Dennis Schubert
82c601c9e8
Merge pull request #6893 from SuperTux88/configure-typhoeus
...
configure concurrency and verbose in diaspora_federation gem
2016-06-27 15:00:56 +02:00
Benjamin Neff
3bfc4003fb
fetch unknown persons to generate url
2016-06-27 14:43:19 +02:00
Benjamin Neff
f0d7e124a9
configure concurrency and verbose in diaspora_federation gem
2016-06-27 14:13:41 +02:00
Jonne Haß
09908a45fb
StatusMessage#raw_message returns empty string for NULL values
...
Previously the federation layer has written the empty string to the
database, now it writes nil/no value to it while our code still expects
the empty string in some cases. Restore the old assumption by returning
the empty string, the real raw value by now is available again in
StatusMessage#text for those that need it, such as validations or tests.
2016-06-27 12:07:11 +02:00
Jonne Haß
54026f4a63
update changelog [ci skip]
2016-06-27 10:40:26 +02:00
Jonne Haß
4b116e3498
Merge pull request #6890 from SuperTux88/connection-tester-refactoring
...
Improve ConnectionTester
2016-06-27 10:38:48 +02:00
Jonne Haß
e51344045a
Merge pull request #6891 from SuperTux88/travis-order
...
start cucumber jobs before other jobs
2016-06-27 10:38:21 +02:00
Benjamin Neff
9a7ce382a9
start cucumber jobs before other jobs
...
the whole build is faster, if the workers start first with the longer
running jobs.
2016-06-27 05:19:02 +02:00
Benjamin Neff
c0ab42fecc
check if links is an array in the JRD
2016-06-27 04:04:09 +02:00
Benjamin Neff
2a0e87957f
validate NodeInfo json against schema in ConnectionTester
2016-06-27 04:04:09 +02:00
Benjamin Neff
da1a02892d
log backtrace for unexpected errors in ConnectionTester
2016-06-27 04:04:09 +02:00
Jonne Haß
28ca071e79
Merge pull request #6889 from SuperTux88/bump-federation-gem
...
bump diaspora_federation to 0.1.1
2016-06-26 21:59:33 +02:00
Benjamin Neff
3497183645
bump diaspora_federation to 0.1.1
...
This fetches reshare roots if they are not available locally already.
2016-06-26 21:43:15 +02:00
Jonne Haß
5d318400c9
Diaspora::Federation::Receive::ignore_existing_guid returns nil when
...
ignoring the error message
Previously it returned the return value of Logging::Logger#warn, which
is true for loggers that log the warn level. However
Diaspora::Federation::Receive::receive_relayable checks the return value
for truthiness in order to decide whether to attempt to relay it,
resulting in a NoMethodError: undefined method `parent' for
true:TrueClass in Diaspora::Federation::Receive::relay_relayable
This change is cosmetic as the exception raised prevented any action
that shouldn't happen anyway, so there's no actual logic change.
2016-06-26 17:01:33 +02:00
Jonne Haß
36058f06c6
Merge pull request #6888 from SuperTux88/fix-message-sender
...
fix sender for messages for old pods
2016-06-26 14:31:24 +02:00
Benjamin Neff
9a3f653c45
fix sender for messages for old pods
...
Send a second message to remote recipients with conversation-author
as salmon author if the conversation-author is local.
The first dispatch will fail on old pods. New pods will ignore the
second message, if the guid already exist.
2016-06-26 14:05:52 +02:00
Jonne Haß
6ffbfe3943
Merge branch 'stable' into develop
2016-06-26 13:12:43 +02:00
Jonne Haß
13d841fe2b
Merge branch 'release/0.5.10.0' into stable
2016-06-26 13:12:22 +02:00
Jonne Haß
266ada3f24
script/server: check for main.js instead of home.css
2016-06-26 13:11:43 +02:00
Dennis Schubert
9a033c7f68
Merge pull request #6887 from SuperTux88/fix-relayable-retraction-sender
...
Fix relayable retraction sender
2016-06-26 11:12:53 +02:00
Benjamin Neff
9fda255add
use the parent author of the target as sender for relayable retractions
2016-06-26 11:05:23 +02:00
Benjamin Neff
5e0b1dd28d
use match_array for comment_service_spec
2016-06-26 10:43:27 +02:00
Dennis Schubert
5bed75b661
Merge pull request #6886 from SuperTux88/fix-relayable-sender
...
use the parent author as salmon sender, if the parent author is local
2016-06-26 10:36:41 +02:00
Benjamin Neff
7241b1c054
use the parent author as salmon sender, if the parent author is local
2016-06-26 10:28:32 +02:00
Dennis Schubert
84ec00fa4d
Merge pull request #6873 from SuperTux88/federation-gem-salmon
...
Federation rewrite with diaspora_federation gem
2016-06-26 07:01:40 +02:00
Benjamin Neff
3b1d113a9a
add own posts to activity-stream again
2016-06-26 06:21:03 +02:00
Benjamin Neff
ab2118ffa5
don't participate own posts
2016-06-26 06:21:03 +02:00
Benjamin Neff
2f2fe71cdc
use DiasporaFederation::Salmon::MagicEnvelope for federation debug logging
2016-06-26 06:21:03 +02:00
Benjamin Neff
03317bc3ff
the xml parameter is now filtered in the diaspora_federation gem
2016-06-26 06:21:03 +02:00
Benjamin Neff
e08306dab4
remove participation parent author check
...
the check that the participation parent author is local is now done in
the diaspora_federation gem
2016-06-26 06:21:03 +02:00
Benjamin Neff
65f03b2d08
extract mappings between diaspora and the federation gem
2016-06-26 06:21:02 +02:00
Benjamin Neff
7bdf4921fd
use private_class_method with returned symbol of def
2016-06-26 06:21:02 +02:00
Benjamin Neff
bb0d7e46dc
add #object_to_receive to Diaspora::Federated::Base
2016-06-26 06:21:02 +02:00
Benjamin Neff
1cf11db634
remove diaspora_handle setter to set author
2016-06-26 06:21:02 +02:00
Benjamin Neff
5e16b9c7cd
add author to subscribers of public shareables to ensure local delivery
2016-06-26 06:21:02 +02:00
Benjamin Neff
a81bdac38c
don't send relayables back to sender pod
...
send retraction for relayable to target author if retracted by parent author
2016-06-26 06:21:02 +02:00
Benjamin Neff
9dfa8e1442
send retractions for public relayables privately if the parent is remote
2016-06-26 06:21:02 +02:00
Benjamin Neff
b3a9bf3925
add migration to cleanup participations
...
* remove author_signature column
* delete all self-participating participations
* delete all participations where author and post-author are remote
* delete all duplicate participations
* delete all participations without post
* create unique index
2016-06-26 06:21:02 +02:00
Benjamin Neff
70f378a1c1
don't participate own posts on creation
2016-06-26 06:21:02 +02:00
Benjamin Neff
f58167c154
disconnect when receiving a Contact with sharing=false
2016-06-26 06:21:02 +02:00
Benjamin Neff
2367be3f66
move Federated::Generator to Diaspora::Federated::Generator
2016-06-26 06:21:02 +02:00
Benjamin Neff
709ad6e909
Participation is not relayable anymore
...
only deliver to parent author
2016-06-26 06:21:02 +02:00
Benjamin Neff
1c291260a2
create module for target association
2016-06-26 06:21:02 +02:00
Benjamin Neff
c8d43a893d
move Guid module to fields
2016-06-26 06:21:02 +02:00
Benjamin Neff
67688a6022
create module for author association
2016-06-26 06:21:02 +02:00
Benjamin Neff
cf5a72719e
participates root author when receiving a reshare
2016-06-26 06:21:02 +02:00
Benjamin Neff
9fa3cc97d4
deliver message always to all participants
...
message doesn't include Diaspora::Relayable anymore
2016-06-26 06:21:02 +02:00
Benjamin Neff
b39f3ccc74
relay relayables after receive
...
also refactored relayable specs to use `let`
2016-06-26 06:21:02 +02:00
Benjamin Neff
91c6c74ca0
retract relayables if the author is ignored by the parent author
2016-06-26 06:21:02 +02:00