mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-10 03:50:38 +03:00
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
This commit is contained in:
commit
52d54ed73b
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user