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

AppView: support "undelete" repo, ie undo tombstone #2806

Open
snarfed opened this issue Sep 9, 2024 · 4 comments
Open

AppView: support "undelete" repo, ie undo tombstone #2806

snarfed opened this issue Sep 9, 2024 · 4 comments

Comments

@snarfed
Copy link
Contributor

snarfed commented Sep 9, 2024

Hi all! @bnewbold and I talked about this on and off a while back, and @ericvolp12 and I just now in Discord, but I couldn't find an open issue to track it, either here or in the indigo repo, so I figured I'd start one. Feel free to move or redirect if you want.

I currently emit #tombstone events over subscribeRepos when accounts on my PDS are disabled/deleted. I plan to switch to #account events eventually, snarfed/bridgy-fed#1119 , but I've waited because I want to be able to undo a tombstone and bring a repo back to life. It sounds like the AppView doesn't support this yet, but I'm not sure if you expect to eventually.

@bnewbold thought that emitting #identity + #account with active: true might do it, but I tried that, and it doesn't work quite yet: snarfed/bridgy-fed#1130 (comment). More background: snarfed/bridgy-fed#1119 (comment)

Thanks in advance!

@excelsior091224
Copy link

It's been over a month since @snarfed raised this issue, and no progress has been made? I was using Bridgy Fed, created by @snarfed, but while investigating another bug (snarfed/bridgy-fed#1093), I accidentally blocked the bluesky account on Bridgy Fed, which resulted in the account bridged to Bluesky being deleted and I can no longer bridge my ActivityPub (Misskey) account to AT Proto. This is causing me a lot of trouble. I hope they can resolve this soon.

@bnewbold
Copy link
Collaborator

This is a bug, but it may take a while to get this resolved. If I recall, we never actually used the #tombstone from out PDS instances (aka, never emitted when an account was deleted), but it was implemented as a hard permanent delete (can't recover) in the AppView. So this behavior has been come across in a way that hadn't been before.

We are working on writing up the "account lifecycle" specification and can try to schedule getting the appview updated to match the spec when that is ready.

In the meantime I would strongly recommend not emitting any more #tombstone events for any reason, and emit #account events instead (either with status either "delete" or "deactivate" when folks disable the bridge, your choice which is more appropriate).

@snarfed
Copy link
Contributor Author

snarfed commented Oct 21, 2024

Thanks @bnewbold! This gives me a new lead that I should have thought of before, but didn't. So far all of my experiments here have been trying to undelete repos that were #tombstoned. I haven't yet tried #account-deactivating a repo and then bringing it back, but I should! Will do.

@snarfed
Copy link
Contributor Author

snarfed commented Oct 22, 2024

Woo, it works! Specifically active: false, status: deactivated and then active: true. Exciting!

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

No branches or pull requests

3 participants