/bridge-user flashed message, link user handle

pull/650/head
Ryan Barrett 2023-10-05 22:28:36 -07:00
rodzic e00a4b52ba
commit 6442acb244
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 6BE31FDF4776E9D4
2 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -224,9 +224,9 @@ def bridge_user():
flash(f"Couldn't resolve {proto.__name__} handle {handle}")
return render_template('bridge_user.html'), 400
proto.get_or_create(id=id, propagate=True)
user = proto.get_or_create(id=id, propagate=True)
flash(f'Bridging {handle} into Bluesky. <a href="https://bsky.app/search">Try searching for them</a> in a minute!')
flash(f'Bridging <a href="{user.web_url()}">{user.handle}</a> into Bluesky. <a href="https://bsky.app/search">Try searching for them</a> in a minute!')
return render_template('bridge_user.html')

Wyświetl plik

@ -333,7 +333,7 @@ class PagesTest(TestCase):
got = self.client.post('/bridge-user', data={'handle': 'fake:handle:user'})
self.assertEqual(200, got.status_code)
self.assertEqual(
['Bridging fake:handle:user into Bluesky. <a href="https://bsky.app/search">Try searching for them</a> in a minute!'],
['Bridging <a href="fake:user">fake:handle:user</a> into Bluesky. <a href="https://bsky.app/search">Try searching for them</a> in a minute!'],
get_flashed_messages())
# check user, repo