diff options
Diffstat (limited to 'mastoapi.c')
| -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) | |||
| 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); |