diff options
Diffstat (limited to 'activitypub.c')
| -rw-r--r-- | activitypub.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/activitypub.c b/activitypub.c index 98ed6da..5ba1f25 100644 --- a/activitypub.c +++ b/activitypub.c | |||
| @@ -3026,6 +3026,19 @@ void process_queue_item(xs_dict *q_item) | |||
| 3026 | } | 3026 | } |
| 3027 | } | 3027 | } |
| 3028 | else | 3028 | else |
| 3029 | if (strcmp(type, "webmention") == 0) { | ||
| 3030 | const xs_dict *msg = xs_dict_get(q_item, "message"); | ||
| 3031 | const char *source = xs_dict_get(msg, "id"); | ||
| 3032 | const xs_list *atts = xs_dict_get(msg, "attachment"); | ||
| 3033 | const xs_dict *att; | ||
| 3034 | |||
| 3035 | xs_list_foreach(atts, att) { | ||
| 3036 | const char *target = xs_dict_get(att, "url"); | ||
| 3037 | |||
| 3038 | srv_debug(1, xs_fmt("webmention source=%s target=%s", source, target)); | ||
| 3039 | } | ||
| 3040 | } | ||
| 3041 | else | ||
| 3029 | srv_log(xs_fmt("unexpected q_item type '%s'", type)); | 3042 | srv_log(xs_fmt("unexpected q_item type '%s'", type)); |
| 3030 | } | 3043 | } |
| 3031 | 3044 | ||