Skip to content

Conversation

@alphatownsman
Copy link
Contributor

instead of physically deleting a deleted identity, a more common and better practice is to return 410 Gone with type = Tombstone

@alphatownsman
Copy link
Contributor Author

will run this on my site for a few weeks first, so set this as draft for now

@tobru
Copy link

tobru commented May 7, 2024

@alphatownsman Has this worked? I want to shut down a Takahe instance and I feel that would be a safe way to communicate to other instances that the identity is gone, rather than just deleting the instance.

@alphatownsman
Copy link
Contributor Author

it runs well for my instance for last few months, I had more aggressive changes locally that broadcast delete to all peers.

I need to look at it again to see what I was thinking to be added before moving this out of Draft, but you can certainly take and use it.

canonicalise(identity.to_ap(), include_security=True),
content_type="application/activity+json",
)
if identity.deleted and tz.now() - identity.deleted > tz.timedelta(days=3):
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you not inline this formula? It's not complicated, but it is subtle and it took me a moment to figure out what it was doing and why.

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.

3 participants