diff options
author | default <nobody@localhost> | 2024-05-11 19:18:07 +0200 |
---|---|---|
committer | default <nobody@localhost> | 2024-05-11 19:18:07 +0200 |
commit | 0a11d70fbecd69e0c93000581b800ff434d42767 (patch) | |
tree | ae77df1ea5686254090650af3fcfef64817aa28b /mastoapi.c | |
parent | 4d53a7b6f7f45f524313980461f5d2a6ef965949 (diff) | |
parent | 6f3763f452ba55ee6ddd9f63f5bc523807e7288f (diff) |
Fixed git conflict.
Diffstat (limited to 'mastoapi.c')
-rw-r--r-- | mastoapi.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1504,7 +1504,7 @@ int mastoapi_get_handler(const xs_dict *req, const char *q_path, /* discard non-Notes */ const char *id = xs_dict_get(msg, "id"); const char *type = xs_dict_get(msg, "type"); - if (!xs_match(type, "Note|Question|Page|Article|Video")) + if (!xs_match(type, POSTLIKE_OBJECT_TYPE)) continue; const char *from = NULL; @@ -1681,7 +1681,7 @@ int mastoapi_get_handler(const xs_dict *req, const char *q_path, /* discard non-Notes */ const char *id = xs_dict_get(msg, "id"); const char *type = xs_dict_get(msg, "type"); - if (!xs_match(type, "Note|Question|Page|Article|Video")) + if (!xs_match(type, POSTLIKE_OBJECT_TYPE)) continue; const char *from = NULL; |