-
-
Notifications
You must be signed in to change notification settings - Fork 267
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
Federate reports #3188
base: main
Are you sure you want to change the base?
Federate reports #3188
Conversation
This is such an annoying change but it is objectively better. Just gotta be real sure they didn't get mixed up anywhere along the way.
Shows a checkbox for the user and lets the admin know
94409e4
to
8de3668
Compare
I'm writing this offline so I can't check what the actual Flag activity spec looks like from Mastodon.
…m into federate-reports
This allows us to support mastodon reports that include multiple statuses
def object(self): | ||
"""Generate a list of reported objects in a format Mastodon will like""" | ||
items = [self.reported_user.remote_id] | ||
if self.statuses: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When I test this self.statuses
is always bookwyrm.Status.None
here. So the status is never sent to Mastodon. However statuses
obviously isn't empty because in the BookWyrm admin interface I can see it. So I have no idea what is going on but it's weird and means statuses aren't passed through to federated servers with the report.
blank=True, | ||
activitypub_field="to", | ||
) | ||
statuses = models.ManyToManyField( | ||
"Status", | ||
null=True, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need to set null
on a ManyToManyField
.
Reports should be sent (if the user wants) to the home instance for remote users. I'm using mastodon's Flag activity as a template: https://docs.joinmastodon.org/spec/activitypub/#Flag
Fixes #962
Components:
user
means the user doing the reporting, not the reported user