summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar grunfink2025-05-03 19:39:04 +0200
committerGravatar grunfink2025-05-03 19:39:04 +0200
commitbca51ef5ba10fc38d804d5d83f26575e02190663 (patch)
tree1a9f2b4e7725ecf25e4fd95d52ad9f26204e11fa
parentAdded back again links as attachments. (diff)
downloadsnac2-bca51ef5ba10fc38d804d5d83f26575e02190663.tar.gz
snac2-bca51ef5ba10fc38d804d5d83f26575e02190663.tar.xz
snac2-bca51ef5ba10fc38d804d5d83f26575e02190663.zip
Preprocess the webmention q_item.
Nothing is really done yet.
-rw-r--r--activitypub.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/activitypub.c b/activitypub.c
index 98ed6da..5ba1f25 100644
--- a/activitypub.c
+++ b/activitypub.c
@@ -3026,6 +3026,19 @@ void process_queue_item(xs_dict *q_item)
3026 } 3026 }
3027 } 3027 }
3028 else 3028 else
3029 if (strcmp(type, "webmention") == 0) {
3030 const xs_dict *msg = xs_dict_get(q_item, "message");
3031 const char *source = xs_dict_get(msg, "id");
3032 const xs_list *atts = xs_dict_get(msg, "attachment");
3033 const xs_dict *att;
3034
3035 xs_list_foreach(atts, att) {
3036 const char *target = xs_dict_get(att, "url");
3037
3038 srv_debug(1, xs_fmt("webmention source=%s target=%s", source, target));
3039 }
3040 }
3041 else
3029 srv_log(xs_fmt("unexpected q_item type '%s'", type)); 3042 srv_log(xs_fmt("unexpected q_item type '%s'", type));
3030} 3043}
3031 3044