/bridge-user: only allow AP and Web source users

pull/660/head
Ryan Barrett 2023-09-29 13:38:50 -07:00
rodzic 247e8a465f
commit 616f347d76
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 6BE31FDF4776E9D4
1 zmienionych plików z 5 dodań i 0 usunięć

Wyświetl plik

@ -213,6 +213,11 @@ def bridge_user():
flash(f"Couldn't determine protocol for {handle}")
return render_template('bridge_user.html'), 400
# TODO: put these into a PULL_PROTOCOLS constant?
if not proto.LABEL in ('activitypub', 'fake', 'web'):
flash(f"{proto.__name__} isn't supported")
return render_template('bridge_user.html'), 400
if not id:
id = proto.handle_to_id(handle)
if not id: