aboutsummaryrefslogtreecommitdiff
path: root/activitypub.c
diff options
context:
space:
mode:
authorgrunfink <grunfink@comam.es>2025-05-04 11:09:07 +0200
committergrunfink <grunfink@comam.es>2025-05-04 11:09:07 +0200
commit7d1b257e4616ff750638b387ae60a128ff0ed43f (patch)
treece06024be0e3f4a7aeba1ed36608bcc121cd2c57 /activitypub.c
parent64d99af19ce864ffefec50fcf0d19d2d65411c35 (diff)
Webmentions are now sent.
Diffstat (limited to 'activitypub.c')
-rw-r--r--activitypub.c7
1 files changed, 6 insertions, 1 deletions
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