Page MenuHomewrite.as

Handle deleted AP actors
Open, LowPublic

Description

Overview

When a remote account is deleted in the fediverse, it sends out a Delete event (I believe). We should handle that event and delete the remote user from our DB whenever that happens.

It might also be helpful to add a shared inbox (TODO: create task), because the server gets pounded when there are multiple followees on the server that the now-deleted account was following.

Implementation

Delete the actor from remoteusers, and that remoteuser's ID from remotefollows and remoteuserkeys.

An actor Delete activity from Mastodon looks like this (partially):

...
"id":"https://mastodon.social/users/UserName#delete",
"type":"Delete",
"actor":"https://mastodon.social/users/UserName",
"to":["https://www.w3.org/ns/activitystreams#Public"],
"object":"https://mastodon.social/users/UserName"
...

Event Timeline

matt created this task.Dec 6 2018, 12:36 AM
matt triaged this task as Low priority.
matt moved this task from Far Future to Soon / v1.0 on the WriteFreely board.Jul 21 2019, 3:03 AM