Do not misattribute inlined boosts if attributedTo
isn't present (#10967)
* Do not misattribute inlined boosts if `attributedTo` isn't present Fixes #10950 * Fix tests
This commit is contained in:
parent
ed19f33440
commit
6c464cd424
2 changed files with 4 additions and 16 deletions
|
@ -143,7 +143,7 @@ class ActivityPub::Activity
|
|||
|
||||
# If the boosted toot is embedded and it is a self-boost, handle it like a Create
|
||||
unless unsupported_object_type?
|
||||
actor_id = value_or_id(first_of_value(@object['attributedTo'])) || @account.uri
|
||||
actor_id = value_or_id(first_of_value(@object['attributedTo']))
|
||||
|
||||
if actor_id == @account.uri
|
||||
return ActivityPub::Activity.factory({ 'type' => 'Create', 'actor' => actor_id, 'object' => @object }, @account).perform
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue