commit d9d4465

grunfink  ·  2026-05-18 15:08:11 +0000 UTC
parent 3d2af2e
Limited the number of nested quoted posts to 3.
1 files changed,  +1, -1
M html.c
M html.c
+1, -1
1@@ -2816,7 +2816,7 @@ xs_html *html_entry(snac *user, xs_dict *msg, int read_only,
2         /* quoted post */
3         const char *quoted_id = xs_or(xs_dict_get(msg, "quoteUri"), xs_dict_get(msg, "quoteUrl"));
4 
5-        if (xs_is_string(quoted_id) && xs_match(quoted_id, "https://*|http://*")) { /** **/
6+        if (level < 3 && xs_is_string(quoted_id) && xs_match(quoted_id, "https://*|http://*")) { /** **/
7             xs *quoted_post = NULL;
8 
9             if (valid_status(object_get(quoted_id, &quoted_post))) {