Skip to content

Use audience field to federate items in groups (fixes #2464) - #2584

Merged
dessalines merged 1 commit into
mainfrom
federation-audience
Dec 1, 2022
Merged

Use audience field to federate items in groups (fixes #2464)#2584
dessalines merged 1 commit into
mainfrom
federation-audience

Conversation

@Nutomic

@Nutomic Nutomic commented Nov 23, 2022

Copy link
Copy Markdown
Member

Adds the audience field for federation to all objects and activities which belong to a specific community. This is in accordance with FEP-1b12. Audience field is optional when receiving so this is fully backwards compatible.

Sadly it doesnt look like this will simplify the code, because we still have to verify that the community which is specified in audience field matches other data. Eg when posting a comment, the audience community has to match the community of the post.

@Nutomic
Nutomic requested a review from dessalines as a code owner November 23, 2022 23:08
@Nutomic
Nutomic force-pushed the federation-audience branch from 85296d4 to 313fccd Compare November 24, 2022 12:46
@Nutomic
Nutomic marked this pull request as draft November 24, 2022 14:59
@Nutomic
Nutomic force-pushed the federation-audience branch 2 times, most recently from 6eaf067 to 80261c3 Compare November 26, 2022 16:32
@Nutomic
Nutomic marked this pull request as ready for review November 26, 2022 16:33
@Nutomic
Nutomic force-pushed the federation-audience branch from 80261c3 to e4c65da Compare November 26, 2022 16:34

@dessalines dessalines left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure what to look for when its 70 files changed, but as long as tests are passing, then it should be fine.

}

#[async_trait::async_trait(?Send)]
impl InCommunity for UpdateCommunity {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems like its repeated a lot, could maybe be a default trait impl. Can worry about it later tho.

@dessalines
dessalines merged commit bcf5c91 into main Dec 1, 2022
@Nothing4You
Nothing4You deleted the federation-audience branch September 11, 2025 17:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants