diff options
| author | 2025-11-17 18:23:14 +0100 | |
|---|---|---|
| committer | 2025-11-17 18:23:21 +0100 | |
| commit | bc746423154bfe0f095a82535c78e44863059072 (patch) | |
| tree | c2b0e7193e8fa6b768b223fe6fee188a81fcbd45 | |
| parent | Request unfound actors from the notifications page. (diff) | |
| download | snac2-bc746423154bfe0f095a82535c78e44863059072.tar.gz snac2-bc746423154bfe0f095a82535c78e44863059072.tar.xz snac2-bc746423154bfe0f095a82535c78e44863059072.zip | |
Some implementations set quoted posts with 'quoteUrl', so look at that as well.
| -rw-r--r-- | activitypub.c | 3 | ||||
| -rw-r--r-- | html.c | 3 |
2 files changed, 4 insertions, 2 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) | |||
| 2686 | 2686 | ||
| 2687 | timeline_request(snac, &in_reply_to, &wrk, 0); | 2687 | timeline_request(snac, &in_reply_to, &wrk, 0); |
| 2688 | 2688 | ||
| 2689 | const char *quoted_id = xs_dict_get(object, "quoteUri"); | 2689 | const char *quoted_id = xs_or(xs_dict_get(object, "quoteUri"), xs_dict_get(object, "quoteUrl")); |
| 2690 | |||
| 2690 | if (xs_is_string(quoted_id) && xs_match(quoted_id, "https://*|http://*")) { /** **/ | 2691 | if (xs_is_string(quoted_id) && xs_match(quoted_id, "https://*|http://*")) { /** **/ |
| 2691 | xs *quoted_post = NULL; | 2692 | xs *quoted_post = NULL; |
| 2692 | int status; | 2693 | int status; |
| @@ -2396,7 +2396,8 @@ xs_html *html_entry(snac *user, xs_dict *msg, int read_only, | |||
| 2396 | xs_html_raw(c)); | 2396 | xs_html_raw(c)); |
| 2397 | 2397 | ||
| 2398 | /* quoted post */ | 2398 | /* quoted post */ |
| 2399 | const char *quoted_id = xs_dict_get(msg, "quoteUri"); | 2399 | const char *quoted_id = xs_or(xs_dict_get(msg, "quoteUri"), xs_dict_get(msg, "quoteUrl")); |
| 2400 | |||
| 2400 | if (xs_is_string(quoted_id) && xs_match(quoted_id, "https://*|http://*")) { /** **/ | 2401 | if (xs_is_string(quoted_id) && xs_match(quoted_id, "https://*|http://*")) { /** **/ |
| 2401 | xs *quoted_post = NULL; | 2402 | xs *quoted_post = NULL; |
| 2402 | 2403 | ||