2
0

Rework FEP-7888 implementation (#36064)

This commit is contained in:
Claire
2025-09-09 20:27:30 +02:00
committed by GitHub
parent 377e870348
commit e1dc960219
9 changed files with 61 additions and 25 deletions

View File

@@ -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