minor disclaimer tweak: switch newlines to <br>s

pull/785/head
Ryan Barrett 2024-01-11 17:43:56 -08:00
rodzic e9194b0a66
commit f34175de43
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 6BE31FDF4776E9D4
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -761,7 +761,7 @@ def postprocess_as2_actor(actor, user):
disclaimer = f'[<a href="https://{PRIMARY_DOMAIN}{user.user_page_path()}">bridged</a> from <a href="{user.web_url()}">{user.handle_or_id()}</a> by <a href="https://{PRIMARY_DOMAIN}/">Bridgy Fed</a>]'
if not actor['summary'].endswith(disclaimer):
if actor['summary']:
actor['summary'] += '\n\n'
actor['summary'] += '<br><br>'
actor['summary'] += disclaimer
return actor