kopia lustrzana https://github.com/snarfed/bridgy-fed
/bridge-user: only allow AP and Web source users
rodzic
247e8a465f
commit
616f347d76
5
pages.py
5
pages.py
|
@ -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:
|
||||
|
|
Ładowanie…
Reference in New Issue