summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)
522 if (xs_is_null(note)) 522 if (xs_is_null(note))
523 note = ""; 523 note = "";
524 524
525 if (strcmp(xs_dict_get(actor, "type"), "Service") == 0)
526 acct = xs_dict_append(acct, "bot", "true");
527 else
528 acct = xs_dict_append(acct, "bot", "false");
529
525 acct = xs_dict_append(acct, "note", note); 530 acct = xs_dict_append(acct, "note", note);
526 531
527 acct = xs_dict_append(acct, "url", id); 532 acct = xs_dict_append(acct, "url", id);