diff options
| author | grunfink <grunfink@comam.es> | 2025-05-03 19:16:21 +0200 |
|---|---|---|
| committer | grunfink <grunfink@comam.es> | 2025-05-03 19:16:21 +0200 |
| commit | 605b60c06ea882cd61df7f2d834c02cce6dd254d (patch) | |
| tree | c56a85ff869ce1d2db6e523f87c33023ea272146 /data.c | |
| parent | 7f38c744dc6ead2ccac83ae979c99ef521aad23a (diff) | |
New function enqueue_webmention().
The q_msg is queued, but nothing is done yet.
Diffstat (limited to 'data.c')
| -rw-r--r-- | data.c | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -3473,6 +3473,19 @@ void enqueue_actor_refresh(snac *user, const char *actor, int forward_secs) } +void enqueue_webmention(const xs_dict *msg) +/* enqueues a webmention for the post */ +{ + xs *qmsg = _new_qmsg("webmention", msg, 0); + const char *ntid = xs_dict_get(qmsg, "ntid"); + xs *fn = xs_fmt("%s/queue/%s.json", srv_basedir, ntid); + + qmsg = _enqueue_put(fn, qmsg); + + srv_debug(1, xs_fmt("enqueue_webmention")); +} + + int was_question_voted(snac *user, const char *id) /* returns true if the user voted in this poll */ { |