commit bc74642

grunfink  ·  2025-11-17 17:23:14 +0000 UTC
parent bde0747
Some implementations set quoted posts with 'quoteUrl', so look at that as well.
2 files changed,  +4, -2
M html.c
+2, -1
 1@@ -2686,7 +2686,8 @@ int process_input_message(snac *snac, const xs_dict *msg, const xs_dict *req)
 2 
 3                 timeline_request(snac, &in_reply_to, &wrk, 0);
 4 
 5-                const char *quoted_id = xs_dict_get(object, "quoteUri");
 6+                const char *quoted_id = xs_or(xs_dict_get(object, "quoteUri"), xs_dict_get(object, "quoteUrl"));
 7+
 8                 if (xs_is_string(quoted_id) && xs_match(quoted_id, "https://*|http://*")) { /** **/
 9                     xs *quoted_post = NULL;
10                     int status;
M html.c
+2, -1
 1@@ -2396,7 +2396,8 @@ xs_html *html_entry(snac *user, xs_dict *msg, int read_only,
 2             xs_html_raw(c));
 3 
 4         /* quoted post */
 5-        const char *quoted_id = xs_dict_get(msg, "quoteUri");
 6+        const char *quoted_id = xs_or(xs_dict_get(msg, "quoteUri"), xs_dict_get(msg, "quoteUrl"));
 7+
 8         if (xs_is_string(quoted_id) && xs_match(quoted_id, "https://*|http://*")) { /** **/
 9             xs *quoted_post = NULL;
10