There is a difference between Shoot and FEP-1b12. In FEP-1b12, attributedTo is a collection, while in Shoot it is a single actor.
https://codeberg.org/fediverse/fep/src/branch/main/fep/1b12/fep-1b12.md#group-moderation
guild channels should reference their guild in the context property (#141) and therefore the attributedTo field can be left to be how it's described in 1b12
group dm channels should have no context and have attributedTo be the list of members, since they are all moderators in their own group chat
for normal dms, there's no channel so it doesn't matter
it's defined here:
|
let attributedTo: string | undefined; |
|
if (actor instanceof DMChannel || actor instanceof Guild) |
|
attributedTo = makeInstanceUrl(getExternalPathFromActor(actor.owner)); |
|
else if (actor instanceof GuildTextChannel) |
|
attributedTo = makeInstanceUrl(getExternalPathFromActor(actor.guild)); |
https://codeberg.org/fediverse/fep/src/branch/main/fep/1b12/fep-1b12.md#group-moderation
guild channels should reference their guild in the
contextproperty (#141) and therefore theattributedTofield can be left to be how it's described in 1b12group dm channels should have no context and have attributedTo be the list of members, since they are all moderators in their own group chat
for normal dms, there's no channel so it doesn't matter
it's defined here:
shoot/src/util/activitypub/transformers/actor.ts
Lines 41 to 45 in 94cf6ff