snac2

Fork of https://codeberg.org/grunfink/snac2
git clone https://git.inz.fi/snac2
Log | Files | Refs | README | LICENSE

commit bca51ef5ba10fc38d804d5d83f26575e02190663
parent 90e9a0aeef500f11528a326ee676caa7da5ef2db
Author: grunfink <grunfink@comam.es>
Date:   Sat,  3 May 2025 19:39:04 +0200

Preprocess the webmention q_item.

Nothing is really done yet.

Diffstat:
Mactivitypub.c | 13+++++++++++++
1 file changed, 13 insertions(+), 0 deletions(-)

diff --git a/activitypub.c b/activitypub.c @@ -3026,6 +3026,19 @@ void process_queue_item(xs_dict *q_item) } } else + if (strcmp(type, "webmention") == 0) { + const xs_dict *msg = xs_dict_get(q_item, "message"); + const char *source = xs_dict_get(msg, "id"); + const xs_list *atts = xs_dict_get(msg, "attachment"); + const xs_dict *att; + + xs_list_foreach(atts, att) { + const char *target = xs_dict_get(att, "url"); + + srv_debug(1, xs_fmt("webmention source=%s target=%s", source, target)); + } + } + else srv_log(xs_fmt("unexpected q_item type '%s'", type)); }