diff options
author | default <nobody@localhost> | 2023-06-11 19:50:04 +0200 |
---|---|---|
committer | default <nobody@localhost> | 2023-06-11 19:50:04 +0200 |
commit | 6c0381bd5cd8168602630ece5d7c2feb0177c2f0 (patch) | |
tree | ea073960ae68461e997d0ee50a598606298647ce | |
parent | 71855e87e31b257440c56d96b33a936c06912ed0 (diff) | |
parent | 52d54ed73b9f71cefa7ccc589ee67960f4309cb6 (diff) |
Merge branch 'master' of triptico.com:git/snac2
-rw-r--r-- | mastoapi.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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); |