mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-25 06:25:04 +00:00
mastoapi: added more checks in the notifications code.
This commit is contained in:
parent
2416945748
commit
442b46abc0
1 changed files with 4 additions and 0 deletions
|
@ -1784,6 +1784,10 @@ int mastoapi_get_handler(const xs_dict *req, const char *q_path,
|
||||||
mn = xs_dict_append(mn, "created_at", xs_dict_get(noti, "date"));
|
mn = xs_dict_append(mn, "created_at", xs_dict_get(noti, "date"));
|
||||||
|
|
||||||
xs *acct = mastoapi_account(&snac1, actor);
|
xs *acct = mastoapi_account(&snac1, actor);
|
||||||
|
|
||||||
|
if (acct == NULL)
|
||||||
|
continue;
|
||||||
|
|
||||||
mn = xs_dict_append(mn, "account", acct);
|
mn = xs_dict_append(mn, "account", acct);
|
||||||
|
|
||||||
if (strcmp(type, "follow") != 0 && !xs_is_null(objid)) {
|
if (strcmp(type, "follow") != 0 && !xs_is_null(objid)) {
|
||||||
|
|
Loading…
Reference in a new issue