commit 7d1b257e4616ff750638b387ae60a128ff0ed43f
parent 64d99af19ce864ffefec50fcf0d19d2d65411c35
Author: grunfink <grunfink@comam.es>
Date: Sun, 4 May 2025 11:09:07 +0200
Webmentions are now sent.
Diffstat:
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git 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