mirror of
https://github.com/yingziwu/mastodon.git
synced 2026-02-23 18:52:41 +00:00
Rework FEP-7888 implementation (#36064)
This commit is contained in:
parent
377e870348
commit
e1dc960219
9 changed files with 61 additions and 25 deletions
|
|
@ -7,7 +7,7 @@ class ActivityPub::ContextPresenter < ActiveModelSerializers::Model
|
|||
def from_conversation(conversation)
|
||||
new.tap do |presenter|
|
||||
presenter.id = ActivityPub::TagManager.instance.uri_for(conversation)
|
||||
presenter.attributed_to = ActivityPub::TagManager.instance.uri_for(conversation.parent_account)
|
||||
presenter.attributed_to = ActivityPub::TagManager.instance.uri_for(conversation.parent_account) if conversation.parent_account.present?
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue