commit 7d1b257
grunfink
·
2025-05-04 09:09:07 +0000 UTC
parent 64d99af
Webmentions are now sent.
1 files changed,
+6,
-1
+6,
-1
1@@ -11,6 +11,7 @@
2 #include "xs_set.h"
3 #include "xs_match.h"
4 #include "xs_unicode.h"
5+#include "xs_webmention.h"
6
7 #include "snac.h"
8
9@@ -3035,7 +3036,11 @@ void process_queue_item(xs_dict *q_item)
10 xs_list_foreach(atts, att) {
11 const char *target = xs_dict_get(att, "url");
12
13- srv_debug(1, xs_fmt("webmention source=%s target=%s", source, target));
14+ if (xs_is_string(source) && xs_is_string(target)) {
15+ int r = xs_webmention_send(source, target, USER_AGENT);
16+
17+ srv_debug(1, xs_fmt("webmention source=%s target=%s %d", source, target, r));
18+ }
19 }
20 }
21 else