fix follow in relationship json (#339)

pull/342/head
Cosmin Stejerean 2022-12-31 19:17:05 -08:00 zatwierdzone przez GitHub
rodzic b522f43ffc
commit 6028232d3d
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -73,7 +73,7 @@ class IdentityService:
target=from_identity,
state__in=FollowStates.group_active(),
).exists(),
"showing_reblogs": follow.boosts,
"showing_reblogs": follow and follow.boosts or False,
"notifying": False,
"blocking": False,
"blocked_by": False,
@ -82,7 +82,7 @@ class IdentityService:
"requested": False,
"domain_blocking": False,
"endorsed": False,
"note": follow.note or "",
"note": (follow and follow.note) or "",
}
def set_summary(self, summary: str):