Only accounts with Service actor_type are considered as bots
authorSergey Suprunenko <suprunenko.s@gmail.com>
Fri, 19 Jun 2020 19:19:00 +0000 (21:19 +0200)
committerSergey Suprunenko <suprunenko.s@gmail.com>
Fri, 19 Jun 2020 19:19:00 +0000 (21:19 +0200)
lib/pleroma/web/mastodon_api/views/account_view.ex

index 68beb69b8f91bab2ab75f0b78029800ce69a615a..6c40b8ccd37ec438c9593c57bde3acfa1c2d5fd2 100644 (file)
@@ -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} ->