summaryrefslogtreecommitdiff
path: root/mastoapi.c
diff options
context:
space:
mode:
Diffstat (limited to 'mastoapi.c')
-rw-r--r--mastoapi.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/mastoapi.c b/mastoapi.c
index acefe57..3b9db28 100644
--- a/mastoapi.c
+++ b/mastoapi.c
@@ -522,6 +522,11 @@ xs_dict *mastoapi_account(const xs_dict *actor)
if (xs_is_null(note))
note = "";
+ if (strcmp(xs_dict_get(actor, "type"), "Service") == 0)
+ acct = xs_dict_append(acct, "bot", "true");
+ else
+ acct = xs_dict_append(acct, "bot", "false");
+
acct = xs_dict_append(acct, "note", note);
acct = xs_dict_append(acct, "url", id);