summaryrefslogtreecommitdiff
path: root/mastoapi.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2023-06-11 19:50:04 +0200
committerdefault <nobody@localhost>2023-06-11 19:50:04 +0200
commit6c0381bd5cd8168602630ece5d7c2feb0177c2f0 (patch)
treeea073960ae68461e997d0ee50a598606298647ce /mastoapi.c
parent71855e87e31b257440c56d96b33a936c06912ed0 (diff)
parent52d54ed73b9f71cefa7ccc589ee67960f4309cb6 (diff)
Merge branch 'master' of triptico.com:git/snac2
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);