diff options
| author | 2022-12-15 11:06:31 +0100 | |
|---|---|---|
| committer | 2022-12-15 11:06:31 +0100 | |
| commit | 6a7007e381a37521846ef94aea91d0b961a2abbb (patch) | |
| tree | 9ba09e5ee02a6e4d2f62e7b6828379643b466419 /activitypub.c | |
| parent | Don't create a parent index if it already exists. (diff) | |
| download | snac2-6a7007e381a37521846ef94aea91d0b961a2abbb.tar.gz snac2-6a7007e381a37521846ef94aea91d0b961a2abbb.tar.xz snac2-6a7007e381a37521846ef94aea91d0b961a2abbb.zip | |
Added support for Update + Note on input.
Diffstat (limited to 'activitypub.c')
| -rw-r--r-- | activitypub.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/activitypub.c b/activitypub.c index e003cfc..4309da9 100644 --- a/activitypub.c +++ b/activitypub.c | |||
| @@ -934,6 +934,14 @@ int process_message(snac *snac, char *msg, char *req) | |||
| 934 | snac_log(snac, xs_fmt("updated actor %s", actor)); | 934 | snac_log(snac, xs_fmt("updated actor %s", actor)); |
| 935 | } | 935 | } |
| 936 | else | 936 | else |
| 937 | if (strcmp(utype, "Note") == 0) { | ||
| 938 | char *id = xs_dict_get(object, "id"); | ||
| 939 | |||
| 940 | object_add_ow(id, object); | ||
| 941 | |||
| 942 | snac_log(snac, xs_fmt("updated post %s", id)); | ||
| 943 | } | ||
| 944 | else | ||
| 937 | snac_log(snac, xs_fmt("ignored 'Update' for object type '%s'", utype)); | 945 | snac_log(snac, xs_fmt("ignored 'Update' for object type '%s'", utype)); |
| 938 | } | 946 | } |
| 939 | else | 947 | else |