snac2

Fork of https://codeberg.org/grunfink/snac2
git clone https://git.inz.fi/snac2
Log | Files | Refs | README | LICENSE

commit 6a7007e381a37521846ef94aea91d0b961a2abbb
parent a0459df6ea4f4639693459dfa01564d9aa6fd0ce
Author: default <nobody@localhost>
Date:   Thu, 15 Dec 2022 11:06:31 +0100

Added support for Update + Note on input.

Diffstat:
Mactivitypub.c | 8++++++++
1 file changed, 8 insertions(+), 0 deletions(-)

diff --git a/activitypub.c b/activitypub.c @@ -934,6 +934,14 @@ int process_message(snac *snac, char *msg, char *req) snac_log(snac, xs_fmt("updated actor %s", actor)); } else + if (strcmp(utype, "Note") == 0) { + char *id = xs_dict_get(object, "id"); + + object_add_ow(id, object); + + snac_log(snac, xs_fmt("updated post %s", id)); + } + else snac_log(snac, xs_fmt("ignored 'Update' for object type '%s'", utype)); } else