mirror of
https://github.com/jointakahe/takahe.git
synced 2024-11-22 07:10:59 +00:00
fix follow in relationship json (#339)
This commit is contained in:
parent
b522f43ffc
commit
6028232d3d
1 changed files with 2 additions and 2 deletions
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue