diff options
| author | 2024-01-28 21:04:11 +0000 | |
|---|---|---|
| committer | 2024-01-28 21:04:11 +0000 | |
| commit | 9568ec8bfede731d2ecdc5840e3a8a125fc31510 (patch) | |
| tree | f06a7cef6e8b485a9a4ed26880ac5b310536a085 /mastoapi.c | |
| parent | cleanup (diff) | |
| download | snac2-9568ec8bfede731d2ecdc5840e3a8a125fc31510.tar.gz snac2-9568ec8bfede731d2ecdc5840e3a8a125fc31510.tar.xz snac2-9568ec8bfede731d2ecdc5840e3a8a125fc31510.zip | |
cleanup
Diffstat (limited to 'mastoapi.c')
| -rw-r--r-- | mastoapi.c | 1 |
1 files changed, 1 insertions, 0 deletions
| @@ -1414,6 +1414,7 @@ int mastoapi_get_handler(const xs_dict *req, const char *q_path, | |||
| 1414 | const char *type = xs_dict_get(msg, "type"); | 1414 | const char *type = xs_dict_get(msg, "type"); |
| 1415 | if (!xs_match(type, "Note|Question|Page|Article")) | 1415 | if (!xs_match(type, "Note|Question|Page|Article")) |
| 1416 | continue; | 1416 | continue; |
| 1417 | |||
| 1417 | const char *from = NULL; | 1418 | const char *from = NULL; |
| 1418 | if (strcmp(type, "Page") == 0) | 1419 | if (strcmp(type, "Page") == 0) |
| 1419 | from = xs_dict_get(msg, "audience"); | 1420 | from = xs_dict_get(msg, "audience"); |