commit bf6fcee

default  ·  2023-05-24 12:12:21 +0000 UTC
parent e75b76d
In mastoapi, don't show poll votes in timelines.
1 files changed,  +4, -0
+4, -0
 1@@ -1157,6 +1157,10 @@ int mastoapi_get_handler(const xs_dict *req, const char *q_path,
 2                 if (is_hidden(&snac1, xs_dict_get(msg, "id")))
 3                     continue;
 4 
 5+                /* discard poll votes (they have a name) */
 6+                if (!xs_is_null(xs_dict_get(msg, "name")))
 7+                    continue;
 8+
 9                 /* convert the Note into a Mastodon status */
10                 xs *st = mastoapi_status(&snac1, msg);
11