diff options
Diffstat (limited to 'activitypub.c')
| -rw-r--r-- | activitypub.c | 7 |
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 @@ | |||
| 11 | #include "xs_set.h" | 11 | #include "xs_set.h" |
| 12 | #include "xs_match.h" | 12 | #include "xs_match.h" |
| 13 | #include "xs_unicode.h" | 13 | #include "xs_unicode.h" |
| 14 | #include "xs_webmention.h" | ||
| 14 | 15 | ||
| 15 | #include "snac.h" | 16 | #include "snac.h" |
| 16 | 17 | ||
| @@ -3035,7 +3036,11 @@ void process_queue_item(xs_dict *q_item) | |||
| 3035 | xs_list_foreach(atts, att) { | 3036 | xs_list_foreach(atts, att) { |
| 3036 | const char *target = xs_dict_get(att, "url"); | 3037 | const char *target = xs_dict_get(att, "url"); |
| 3037 | 3038 | ||
| 3038 | srv_debug(1, xs_fmt("webmention source=%s target=%s", source, target)); | 3039 | if (xs_is_string(source) && xs_is_string(target)) { |
| 3040 | int r = xs_webmention_send(source, target, USER_AGENT); | ||
| 3041 | |||
| 3042 | srv_debug(1, xs_fmt("webmention source=%s target=%s %d", source, target, r)); | ||
| 3043 | } | ||
| 3039 | } | 3044 | } |
| 3040 | } | 3045 | } |
| 3041 | else | 3046 | else |