summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar default2023-06-11 19:50:04 +0200
committerGravatar default2023-06-11 19:50:04 +0200
commit6c0381bd5cd8168602630ece5d7c2feb0177c2f0 (patch)
treeea073960ae68461e997d0ee50a598606298647ce
parentIf ~/error/ exists, also log messages to a file there. (diff)
parentMerge pull request 'set bot to true for bots in mastodon api' (#45) from Haij... (diff)
downloadsnac2-6c0381bd5cd8168602630ece5d7c2feb0177c2f0.tar.gz
snac2-6c0381bd5cd8168602630ece5d7c2feb0177c2f0.tar.xz
snac2-6c0381bd5cd8168602630ece5d7c2feb0177c2f0.zip
Merge branch 'master' of triptico.com:git/snac2
-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);