diff options
author | Sergey Suprunenko <suprunenko.s@gmail.com> | 2020-06-19 21:19:00 +0200 |
---|---|---|
committer | Sergey Suprunenko <suprunenko.s@gmail.com> | 2020-06-19 21:19:00 +0200 |
commit | ac0344dd24d520ab61e835b9caea97529f4c1dad (patch) | |
tree | aa0ccd869f4fec6d9c72c1987f9b2340da2ca87a | |
parent | b63646169dbed68814bdb867c4b8b3c88a3d2360 (diff) | |
download | pleroma-ac0344dd24d520ab61e835b9caea97529f4c1dad.tar.gz |
Only accounts with Service actor_type are considered as bots
-rw-r--r-- | lib/pleroma/web/mastodon_api/views/account_view.ex | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pleroma/web/mastodon_api/views/account_view.ex b/lib/pleroma/web/mastodon_api/views/account_view.ex index 68beb69b8..6c40b8ccd 100644 --- a/lib/pleroma/web/mastodon_api/views/account_view.ex +++ b/lib/pleroma/web/mastodon_api/views/account_view.ex @@ -179,7 +179,7 @@ defmodule Pleroma.Web.MastodonAPI.AccountView do 0 end - bot = user.actor_type in ["Application", "Service"] + bot = user.actor_type == "Service" emojis = Enum.map(user.emoji, fn {shortcode, raw_url} -> |