aboutsummaryrefslogtreecommitdiff
path: root/html.c
diff options
context:
space:
mode:
authorgrunfink <grunfink@comam.es>2026-05-18 17:08:11 +0200
committergrunfink <grunfink@comam.es>2026-05-18 17:08:11 +0200
commitd9d4465eb4bae643fc037cba7738a66cd1cb508d (patch)
tree76d8193ef60c835bae4c89dd67adcfeac8068372 /html.c
parent3d2af2ef63e0b79b0b4fe5398928291df9cb8c24 (diff)
Limited the number of nested quoted posts to 3.
Diffstat (limited to 'html.c')
-rw-r--r--html.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/html.c b/html.c
index dbc65c8..cd1746a 100644
--- a/html.c
+++ b/html.c
@@ -2816,7 +2816,7 @@ xs_html *html_entry(snac *user, xs_dict *msg, int read_only,
/* quoted post */
const char *quoted_id = xs_or(xs_dict_get(msg, "quoteUri"), xs_dict_get(msg, "quoteUrl"));
- if (xs_is_string(quoted_id) && xs_match(quoted_id, "https://*|http://*")) { /** **/
+ if (level < 3 && xs_is_string(quoted_id) && xs_match(quoted_id, "https://*|http://*")) { /** **/
xs *quoted_post = NULL;
if (valid_status(object_get(quoted_id, &quoted_post))) {