Implement federated moderation for ActivityPub
<!--- Please read this! The Definition of Ready (DoR) can be found at https://developers.minds.com/docs/handbook/how-we-work/#definition-of-ready-dor Before opening a new issue, make sure to search for keywords in the issues filtered by the "Type::Feature" label and verify the feature you're about to submit isn't a duplicate. ---> ## Goal <!--- Clearly outline the goal of the issue and why we are doing it ---> To allow Minds to become aware of bad content on the Fediverse, and for Minds to notify other sites about content we have reported, we should implement the Flag activity type ## What needs to be done <!--- Clearly detail what needs to be done to achieve the goal set out above ---> See https://docs.joinmastodon.org/spec/activitypub/#Flag ### Example payload (from mastodon) ```json { "@context": "https://www.w3.org/ns/activitystreams", "id": "http://mastodon.local/982b445b-9876-4591-94dc-a7a2542de91c", "type": "Flag", "actor": "http://mastodon.local/actor", "content": "", "object": [ "http://d560-129-213-177-45.ngrok-free.app/api/activitypub/users/1521521911551496210" ] } ``` ## QA <!--- Consideration is given to how the issue will be demoed and tested prior to being deployed ---> ## UX/Design <!--- Sufficient wireframes have been presented and understood by the development team. Full mockups are not required and re-usable components are encouraged. ---> ## Mobile <!--- Does a mobile card need to be created? Any notes for mobile? ---> - [ ] Is Mobile Required? ## Personas <!--- Who does this user impact and why (optional) ---> ## Experiments <!--- Experiments are not required, but it should be made clear if one is expected. If experiments are required, the hypothesis should be outlined. ---> ## Acceptance Criteria <!-- Everyone should be able to understand what is expected to be delivered ---> - [ ] When a Minds post is reported (and upheld by an admin), we should create a 'Flag' event and propagate out to all domains - [ ] Minds should process Flag activity and generate reports if the entity exists ## Definition of Ready Checklist - [ ] Definition Of Done (DoD) - [ ] Acceptance criteria - [ ] Weighted - [ ] QA - [ ] UX/Design - [ ] Personas - [ ] Experiments
issue