diff options
Diffstat (limited to 'activitypub.c')
| -rw-r--r-- | activitypub.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/activitypub.c b/activitypub.c index 7c93ca5..8924f1c 100644 --- a/activitypub.c +++ b/activitypub.c | |||
| @@ -233,8 +233,8 @@ void process_message(snac *snac, char *msg, char *req) | |||
| 233 | 233 | ||
| 234 | timeline_request(snac, in_reply_to); | 234 | timeline_request(snac, in_reply_to); |
| 235 | 235 | ||
| 236 | snac_log(snac, xs_fmt("new 'Note' %s %s", actor, id)); | 236 | if (timeline_add(snac, id, msg, in_reply_to)) |
| 237 | timeline_add(snac, id, msg, in_reply_to); | 237 | snac_log(snac, xs_fmt("new 'Note' %s %s", actor, id)); |
| 238 | } | 238 | } |
| 239 | } | 239 | } |
| 240 | else | 240 | else |
| @@ -247,8 +247,10 @@ void process_message(snac *snac, char *msg, char *req) | |||
| 247 | else | 247 | else |
| 248 | */ | 248 | */ |
| 249 | if (strcmp(type, "Like") == 0) { | 249 | if (strcmp(type, "Like") == 0) { |
| 250 | if (xs_type(object) == XSTYPE_STRING) | 250 | if (xs_type(object) == XSTYPE_STRING) { |
| 251 | timeline_admire(snac, object, actor, 1); | 251 | timeline_admire(snac, object, actor, 1); |
| 252 | snac_log(snac, xs_fmt("new 'Like' %s %s", actor, object)); | ||
| 253 | } | ||
| 252 | else | 254 | else |
| 253 | snac_debug(snac, 2, xs_fmt("xs_type for 'Like' object not string")); | 255 | snac_debug(snac, 2, xs_fmt("xs_type for 'Like' object not string")); |
| 254 | } | 256 | } |
| @@ -258,6 +260,7 @@ void process_message(snac *snac, char *msg, char *req) | |||
| 258 | timeline_request(snac, object); | 260 | timeline_request(snac, object); |
| 259 | 261 | ||
| 260 | timeline_admire(snac, object, actor, 0); | 262 | timeline_admire(snac, object, actor, 0); |
| 263 | snac_log(snac, xs_fmt("new 'Announce' %s %s", actor, object)); | ||
| 261 | } | 264 | } |
| 262 | else | 265 | else |
| 263 | snac_debug(snac, 2, xs_fmt("xs_type for 'Announce' object not string")); | 266 | snac_debug(snac, 2, xs_fmt("xs_type for 'Announce' object not string")); |