1
0
Fork 0
mirror of https://github.com/mastodon/mastodon.git synced 2024-08-20 21:08:15 -07:00

Update app/lib/activitypub/activity.rb

Co-authored-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
Angus McLeod 2023-10-24 20:24:17 +08:00 committed by GitHub
parent f02b006151
commit f2103d1290
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -111,7 +111,7 @@ class ActivityPub::Activity
# If the boosted toot is embedded and it is a self-boost, handle it like a Create
if !unsupported_object_type? && (object_actor_uri == @account.uri)
virtual_object = { 'type' => 'Create', 'actor' => actor_id, 'object' => @object }
virtual_object = { 'type' => 'Create', 'actor' => object_actor_uri, 'object' => @object }
return ActivityPub::Activity.factory(virtual_object, @account, request_id: @options[:request_id]).perform
end