summaryrefslogtreecommitdiff
path: root/activitypub.c
diff options
context:
space:
mode:
Diffstat (limited to 'activitypub.c')
-rw-r--r--activitypub.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/activitypub.c b/activitypub.c
index e007c96..376082d 100644
--- a/activitypub.c
+++ b/activitypub.c
@@ -1996,12 +1996,12 @@ int process_input_message(snac *snac, xs_dict *msg, xs_dict *req)
1996 if (xs_type(object) == XSTYPE_DICT) 1996 if (xs_type(object) == XSTYPE_DICT)
1997 object = xs_dict_get(object, "id"); 1997 object = xs_dict_get(object, "id");
1998 1998
1999 if (timeline_admire(snac, object, actor, 1) == 201) { 1999 if (timeline_admire(snac, object, actor, 1) == 201)
2000 snac_log(snac, xs_fmt("new 'Like' %s %s", actor, object)); 2000 snac_log(snac, xs_fmt("new 'Like' %s %s", actor, object));
2001 do_notify = 1;
2002 }
2003 else 2001 else
2004 snac_log(snac, xs_fmt("repeated 'Like' from %s to %s", actor, object)); 2002 snac_log(snac, xs_fmt("repeated 'Like' from %s to %s", actor, object));
2003
2004 do_notify = 1;
2005 } 2005 }
2006 else 2006 else
2007 if (strcmp(type, "Announce") == 0) { /** **/ 2007 if (strcmp(type, "Announce") == 0) { /** **/
@@ -2027,13 +2027,13 @@ int process_input_message(snac *snac, xs_dict *msg, xs_dict *req)
2027 xs *who_o = NULL; 2027 xs *who_o = NULL;
2028 2028
2029 if (valid_status(actor_request(snac, who, &who_o))) { 2029 if (valid_status(actor_request(snac, who, &who_o))) {
2030 if (timeline_admire(snac, object, actor, 0) == 201) { 2030 if (timeline_admire(snac, object, actor, 0) == 201)
2031 snac_log(snac, xs_fmt("new 'Announce' %s %s", actor, object)); 2031 snac_log(snac, xs_fmt("new 'Announce' %s %s", actor, object));
2032 do_notify = 1;
2033 }
2034 else 2032 else
2035 snac_log(snac, xs_fmt("repeated 'Announce' from %s to %s", 2033 snac_log(snac, xs_fmt("repeated 'Announce' from %s to %s",
2036 actor, object)); 2034 actor, object));
2035
2036 do_notify = 1;
2037 } 2037 }
2038 else 2038 else
2039 snac_debug(snac, 1, xs_fmt("dropped 'Announce' on actor request error %s", who)); 2039 snac_debug(snac, 1, xs_fmt("dropped 'Announce' on actor request error %s", who));