Fixed #577: Send bot property down API right

This commit is contained in:
Andrew Godwin 2023-05-13 06:00:18 -06:00
parent d6c9ba0819
commit 1fb02b06e1
1 changed files with 2 additions and 2 deletions

View File

@ -958,8 +958,8 @@ class Identity(StatorModel):
else []
),
"emojis": [emoji.to_mastodon_json() for emoji in emojis],
"bot": False,
"group": False,
"bot": self.actor_type.lower() in ["service", "application"],
"group": self.actor_type.lower() == "group",
"discoverable": self.discoverable,
"suspended": False,
"limited": False,