summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar grunfink2025-11-09 10:03:48 +0100
committerGravatar grunfink2025-11-09 10:03:48 +0100
commit59d5a8b4a8610c727255d46802e54f216cc9bd90 (patch)
tree7ffea5a86a8aae2934619d808cfbecc4da5a0516
parentAlso show unlisted posts in public timelines. (diff)
downloadsnac2-59d5a8b4a8610c727255d46802e54f216cc9bd90.tar.gz
snac2-59d5a8b4a8610c727255d46802e54f216cc9bd90.tar.xz
snac2-59d5a8b4a8610c727255d46802e54f216cc9bd90.zip
Ensure the "quote" post attribute is an URL.
It seems that Bookwyrm generate "quote" fields for another thing, because why not.
-rw-r--r--html.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/html.c b/html.c
index ec7d7bf..ae5adec 100644
--- a/html.c
+++ b/html.c
@@ -2397,7 +2397,7 @@ xs_html *html_entry(snac *user, xs_dict *msg, int read_only,
2397 2397
2398 /* quoted post */ 2398 /* quoted post */
2399 const char *quoted_id = xs_dict_get(msg, "quote"); 2399 const char *quoted_id = xs_dict_get(msg, "quote");
2400 if (xs_is_string(quoted_id)) { 2400 if (xs_is_string(quoted_id) && xs_match(quoted_id, "https://*|http://*")) { /** **/
2401 xs *quoted_post = NULL; 2401 xs *quoted_post = NULL;
2402 2402
2403 if (valid_status(object_get(quoted_id, &quoted_post))) { 2403 if (valid_status(object_get(quoted_id, &quoted_post))) {