diff options
| -rw-r--r-- | html.c | 2 | ||||
| -rw-r--r-- | mastoapi.c | 2 |
2 files changed, 2 insertions, 2 deletions
| @@ -1226,7 +1226,7 @@ xs_str *html_notifications(snac *snac) | |||
| 1226 | const char *actor_id = xs_dict_get(noti, "actor"); | 1226 | const char *actor_id = xs_dict_get(noti, "actor"); |
| 1227 | xs *actor = NULL; | 1227 | xs *actor = NULL; |
| 1228 | 1228 | ||
| 1229 | if (!valid_status(object_get(actor_id, &actor))) | 1229 | if (!valid_status(actor_get(snac, actor_id, &actor))) |
| 1230 | continue; | 1230 | continue; |
| 1231 | 1231 | ||
| 1232 | xs *a_name = actor_name(actor); | 1232 | xs *a_name = actor_name(actor); |
| @@ -1108,7 +1108,7 @@ int mastoapi_get_handler(const xs_dict *req, const char *q_path, | |||
| 1108 | xs *actor = NULL; | 1108 | xs *actor = NULL; |
| 1109 | xs *entry = NULL; | 1109 | xs *entry = NULL; |
| 1110 | 1110 | ||
| 1111 | if (!valid_status(object_get(xs_dict_get(noti, "actor"), &actor))) | 1111 | if (!valid_status(actor_get(&snac1, xs_dict_get(noti, "actor"), &actor))) |
| 1112 | continue; | 1112 | continue; |
| 1113 | 1113 | ||
| 1114 | if (objid != NULL && !valid_status(object_get(objid, &entry))) | 1114 | if (objid != NULL && !valid_status(object_get(objid, &entry))) |