snac2

Fork of https://codeberg.org/grunfink/snac2
git clone https://git.inz.fi/snac2
Log | Files | Refs | README | LICENSE

commit 6c0381bd5cd8168602630ece5d7c2feb0177c2f0
parent 71855e87e31b257440c56d96b33a936c06912ed0
Author: default <nobody@localhost>
Date:   Sun, 11 Jun 2023 19:50:04 +0200

Merge branch 'master' of triptico.com:git/snac2

Diffstat:
Mmastoapi.c | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git 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);