mirror of
https://github.com/jointakahe/takahe.git
synced 2024-11-25 16:51:00 +00:00
Fixed #577: Send bot property down API right
This commit is contained in:
parent
d6c9ba0819
commit
1fb02b06e1
1 changed files with 2 additions and 2 deletions
|
@ -958,8 +958,8 @@ class Identity(StatorModel):
|
||||||
else []
|
else []
|
||||||
),
|
),
|
||||||
"emojis": [emoji.to_mastodon_json() for emoji in emojis],
|
"emojis": [emoji.to_mastodon_json() for emoji in emojis],
|
||||||
"bot": False,
|
"bot": self.actor_type.lower() in ["service", "application"],
|
||||||
"group": False,
|
"group": self.actor_type.lower() == "group",
|
||||||
"discoverable": self.discoverable,
|
"discoverable": self.discoverable,
|
||||||
"suspended": False,
|
"suspended": False,
|
||||||
"limited": False,
|
"limited": False,
|
||||||
|
|
Loading…
Reference in a new issue