diff options
| author | 2025-11-09 10:03:48 +0100 | |
|---|---|---|
| committer | 2025-11-09 10:03:48 +0100 | |
| commit | 59d5a8b4a8610c727255d46802e54f216cc9bd90 (patch) | |
| tree | 7ffea5a86a8aae2934619d808cfbecc4da5a0516 /html.c | |
| parent | Also show unlisted posts in public timelines. (diff) | |
| download | snac2-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.
Diffstat (limited to 'html.c')
| -rw-r--r-- | html.c | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -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, "ed_post))) { | 2403 | if (valid_status(object_get(quoted_id, "ed_post))) { |