0
0
Fork 0

Fix #6657 - Use target instead of origin in Remove activity (#6664)

This commit is contained in:
Eugen Rochko 2018-03-07 03:54:46 +01:00 committed by GitHub
parent 913a38111f
commit e6520c0270
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View file

@ -2,7 +2,7 @@
class ActivityPub::Activity::Remove < ActivityPub::Activity
def perform
return unless @json['origin'].present? && value_or_id(@json['origin']) == @account.featured_collection_url
return unless @json['target'].present? && value_or_id(@json['target']) == @account.featured_collection_url
status = status_from_uri(object_uri)