]> cat aescling's git repositories - mastodon.git/commit
Reduce usage of LD signatures (#9659)
authorThibG <thib@sitedethib.com>
Sun, 30 Dec 2018 08:48:59 +0000 (09:48 +0100)
committerEugen Rochko <eugen@zeonfederated.com>
Sun, 30 Dec 2018 08:48:59 +0000 (09:48 +0100)
commit290932602b32e3bdc2a4c5cb278fb73755a2cd52
tree45403aa491d707bd683197abf602b72dcaad2b9a
parentfb08039de58bee131e66c1a41db9d9f1f831d6e9
Reduce usage of LD signatures (#9659)

* Do not LDS-sign Follow, Accept, Reject, Undo, Block

* Do not use LDS for Create activities of private toots

* Minor cleanup

* Ignore unsigned activities instead of misattributing them

* Use status.distributable? instead of querying visibility directly
13 files changed:
app/lib/activitypub/activity/follow.rb
app/services/activitypub/process_collection_service.rb
app/services/after_block_domain_from_account_service.rb
app/services/authorize_follow_service.rb
app/services/block_service.rb
app/services/follow_service.rb
app/services/process_mentions_service.rb
app/services/reject_follow_service.rb
app/services/unblock_service.rb
app/services/unfollow_service.rb
app/workers/activitypub/distribution_worker.rb
app/workers/activitypub/reply_distribution_worker.rb
spec/services/activitypub/process_collection_service_spec.rb