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

When disabling ATProto for an account, remove its DNS record #1268

Closed
Tracked by #744
snarfed opened this issue Aug 21, 2024 · 1 comment
Closed
Tracked by #744

When disabling ATProto for an account, remove its DNS record #1268

snarfed opened this issue Aug 21, 2024 · 1 comment

Comments

@snarfed
Copy link
Owner

snarfed commented Aug 21, 2024

Wouldn't save us a ton of DNS space, but maybe something!

@snarfed snarfed changed the title When disabling ATProto for an accounut, remove its handle DNS record When disabling ATProto for an account, remove its DNS record Aug 21, 2024
@Tamschi Tamschi added the infra label Oct 31, 2024
@snarfed snarfed added the now label Nov 14, 2024
@snarfed snarfed closed this as completed Nov 27, 2024
@snarfed
Copy link
Owner Author

snarfed commented Nov 27, 2024

Backfilled this for web, see #1458 (comment). Now backfilling for AP with:

ids = []
for a in ActivityPub.query(ActivityPub.copies.protocol == 'atproto'):
  if a.is_enabled(ATProto):
    continue
  ids.append(a.key.id())
  print(len(ids), a.handle)
  try:
    did = a.get_copy(ATProto)
    repo = arroba.server.storage.load_repo(did)
    arroba.server.storage.write_event(repo=repo, type='account',
                                      active=False, status='deactivated')
    ATProto.remove_dns(a.handle_as('atproto'))
  except:
    logging.exception('')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants