Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from Dec 1, 2022

Conversation

Nutomic
Copy link
Member

@Nutomic Nutomic commented Nov 23, 2022

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 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
Copy link
Member

@dessalines dessalines left a comment

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

None yet

2 participants