diff options
author | grunfink <grunfink@noreply.codeberg.org> | 2023-06-11 16:58:54 +0000 |
---|---|---|
committer | grunfink <grunfink@noreply.codeberg.org> | 2023-06-11 16:58:54 +0000 |
commit | 52d54ed73b9f71cefa7ccc589ee67960f4309cb6 (patch) | |
tree | 916e8a53739f9eb2abf8dc2b69ecdd8dd0fc4063 | |
parent | f6b836e120408c9a6d2791fc932aea3c081d1654 (diff) | |
parent | 9b1c5cc843e5f949cef0ebecd933f4442fb52577 (diff) |
Merge pull request 'set bot to true for bots in mastodon api' (#45) from Haijo7/snac2:masto-api-user-type into master
Reviewed-on: https://codeberg.org/grunfink/snac2/pulls/45
-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); |