aboutsummaryrefslogtreecommitdiff
path: root/activitypub.c
diff options
context:
space:
mode:
authorgrunfink <grunfink@comam.es>2025-11-17 18:23:14 +0100
committergrunfink <grunfink@comam.es>2025-11-17 18:23:21 +0100
commitbc746423154bfe0f095a82535c78e44863059072 (patch)
treec2b0e7193e8fa6b768b223fe6fee188a81fcbd45 /activitypub.c
parentbde074762685a0efe75067c783a078a22949a405 (diff)
Some implementations set quoted posts with 'quoteUrl', so look at that as well.
Diffstat (limited to 'activitypub.c')
-rw-r--r--activitypub.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/activitypub.c b/activitypub.c
index 52d5535..2c0fa2e 100644
--- a/activitypub.c
+++ b/activitypub.c
@@ -2686,7 +2686,8 @@ int process_input_message(snac *snac, const xs_dict *msg, const xs_dict *req)
timeline_request(snac, &in_reply_to, &wrk, 0);
- const char *quoted_id = xs_dict_get(object, "quoteUri");
+ const char *quoted_id = xs_or(xs_dict_get(object, "quoteUri"), xs_dict_get(object, "quoteUrl"));
+
if (xs_is_string(quoted_id) && xs_match(quoted_id, "https://*|http://*")) { /** **/
xs *quoted_post = NULL;
int status;