user page: activities: fix user actor rendering for UI follows

fixes #406
pull/413/head
Ryan Barrett 2023-02-06 20:30:08 -08:00
rodzic 3623df8e20
commit db4d765cf8
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 6BE31FDF4776E9D4
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -338,8 +338,8 @@ class Object(StringIdModel):
def actor_link(self):
"""Returns a pretty actor link with their name and profile picture."""
if self.source_protocol == 'webmention' and self.domains:
# TODO: why do we do this?!
if self.source_protocol in ('webmention', 'ui') and self.domains:
# outbound; show a nice link to the user
return User.get_by_id(self.domains[0]).user_page_link()
activity = json_loads(self.as1)