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

Handle federated reports from Mastodon, Kbin #4323

Merged
merged 11 commits into from
Jan 5, 2024
Merged

Conversation

Nutomic
Copy link
Member

@Nutomic Nutomic commented Dec 22, 2023

No description provided.

@Nutomic Nutomic changed the title Test Kbin/Mbin federation Handle federated reports from Mastodon, Kbin Jan 2, 2024
@Nutomic Nutomic marked this pull request as ready for review January 2, 2024 11:41
@Nutomic Nutomic marked this pull request as draft January 3, 2024 10:20
/// Report reason as sent by Lemmy
pub(crate) summary: Option<String>,
/// Report reason as sent by Mastodon
pub(crate) content: Option<String>,
#[serde(rename = "type")]
pub(crate) kind: FlagType,
pub(crate) id: Url,
pub(crate) audience: Option<ObjectId<ApubCommunity>>,
Copy link
Member Author

Choose a reason for hiding this comment

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

Main changes here. Mastodon uses a different field for the reason, and the object is an array with user id and one or more post/comment ids, of which Lemmy can only handle one.

@Nutomic Nutomic marked this pull request as ready for review January 3, 2024 10:30
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.

Once you get it passing and conflicts resolved, feel free to merge.

@Nutomic Nutomic enabled auto-merge (squash) January 4, 2024 10:56
@Nutomic Nutomic merged commit e3b7150 into main Jan 5, 2024
0 of 2 checks passed
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