mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-22 13:25:04 +00:00
In mastoapi, don't show poll votes in timelines.
This commit is contained in:
parent
e75b76da7c
commit
bf6fcee21c
1 changed files with 4 additions and 0 deletions
|
@ -1157,6 +1157,10 @@ int mastoapi_get_handler(const xs_dict *req, const char *q_path,
|
|||
if (is_hidden(&snac1, xs_dict_get(msg, "id")))
|
||||
continue;
|
||||
|
||||
/* discard poll votes (they have a name) */
|
||||
if (!xs_is_null(xs_dict_get(msg, "name")))
|
||||
continue;
|
||||
|
||||
/* convert the Note into a Mastodon status */
|
||||
xs *st = mastoapi_status(&snac1, msg);
|
||||
|
||||
|
|
Loading…
Reference in a new issue