From 7d1b257e4616ff750638b387ae60a128ff0ed43f Mon Sep 17 00:00:00 2001 From: grunfink Date: Sun, 4 May 2025 11:09:07 +0200 Subject: Webmentions are now sent. --- activitypub.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/activitypub.c b/activitypub.c index 5ba1f25..53a1e74 100644 --- a/activitypub.c +++ b/activitypub.c @@ -11,6 +11,7 @@ #include "xs_set.h" #include "xs_match.h" #include "xs_unicode.h" +#include "xs_webmention.h" #include "snac.h" @@ -3035,7 +3036,11 @@ void process_queue_item(xs_dict *q_item) 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)); + if (xs_is_string(source) && xs_is_string(target)) { + int r = xs_webmention_send(source, target, USER_AGENT); + + srv_debug(1, xs_fmt("webmention source=%s target=%s %d", source, target, r)); + } } } else -- cgit v1.2.3