diff options
| author | 2023-05-24 14:12:21 +0200 | |
|---|---|---|
| committer | 2023-05-24 14:12:21 +0200 | |
| commit | bf6fcee21c708d299895713ab775fcc666a8124d (patch) | |
| tree | 466ba201f0f6dcde4688ca46f26a96b8a4c01cde | |
| parent | Tweaked log message. (diff) | |
| download | penes-snac2-bf6fcee21c708d299895713ab775fcc666a8124d.tar.gz penes-snac2-bf6fcee21c708d299895713ab775fcc666a8124d.tar.xz penes-snac2-bf6fcee21c708d299895713ab775fcc666a8124d.zip | |
In mastoapi, don't show poll votes in timelines.
| -rw-r--r-- | mastoapi.c | 4 |
1 files changed, 4 insertions, 0 deletions
| @@ -1157,6 +1157,10 @@ int mastoapi_get_handler(const xs_dict *req, const char *q_path, | |||
| 1157 | if (is_hidden(&snac1, xs_dict_get(msg, "id"))) | 1157 | if (is_hidden(&snac1, xs_dict_get(msg, "id"))) |
| 1158 | continue; | 1158 | continue; |
| 1159 | 1159 | ||
| 1160 | /* discard poll votes (they have a name) */ | ||
| 1161 | if (!xs_is_null(xs_dict_get(msg, "name"))) | ||
| 1162 | continue; | ||
| 1163 | |||
| 1160 | /* convert the Note into a Mastodon status */ | 1164 | /* convert the Note into a Mastodon status */ |
| 1161 | xs *st = mastoapi_status(&snac1, msg); | 1165 | xs *st = mastoapi_status(&snac1, msg); |
| 1162 | 1166 | ||