mirror of
https://github.com/mastodon/mastodon.git
synced 2025-09-05 17:31:12 +00:00
Change quote to be fetched with quoted account rather than random follower (#35709)
This commit is contained in:
parent
ac59772dc6
commit
e615d2f069
|
@ -21,7 +21,7 @@ class ActivityPub::Activity::QuoteRequest < ActivityPub::Activity
|
|||
def accept_quote_request!(quoted_status)
|
||||
status = status_from_uri(@json['instrument'])
|
||||
# TODO: import inlined quote post if possible
|
||||
status ||= ActivityPub::FetchRemoteStatusService.new.call(@json['instrument'], on_behalf_of: @account.followers.local.first, request_id: @options[:request_id])
|
||||
status ||= ActivityPub::FetchRemoteStatusService.new.call(@json['instrument'], on_behalf_of: quoted_status.account, request_id: @options[:request_id])
|
||||
# TODO: raise if status is nil
|
||||
|
||||
# Sanity check
|
||||
|
|
Loading…
Reference in New Issue
Block a user