summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--activitypub.c4
-rw-r--r--data.c2
-rw-r--r--html.c4
-rw-r--r--snac.h2
4 files changed, 6 insertions, 6 deletions
diff --git a/activitypub.c b/activitypub.c
index be0bf9f..2f74139 100644
--- a/activitypub.c
+++ b/activitypub.c
@@ -914,7 +914,7 @@ int process_message(snac *snac, char *msg, char *req)
if (xs_type(object) == XSTYPE_DICT)
object = xs_dict_get(object, "id");
- timeline_admire(snac, msg, object, actor, 1);
+ timeline_admire(snac, object, actor, 1);
snac_log(snac, xs_fmt("new 'Like' %s %s", actor, object));
do_notify = 1;
}
@@ -936,7 +936,7 @@ int process_message(snac *snac, char *msg, char *req)
xs *who_o = NULL;
if (valid_status(actor_request(snac, who, &who_o))) {
- timeline_admire(snac, msg, object, actor, 0);
+ timeline_admire(snac, object, actor, 0);
snac_log(snac, xs_fmt("new 'Announce' %s %s", actor, object));
do_notify = 1;
}
diff --git a/data.c b/data.c
index 2a73701..f623111 100644
--- a/data.c
+++ b/data.c
@@ -847,7 +847,7 @@ int timeline_add(snac *snac, char *id, char *o_msg)
}
-void timeline_admire(snac *snac, char *o_msg, char *id, char *admirer, int like)
+void timeline_admire(snac *snac, char *id, char *admirer, int like)
/* updates a timeline entry with a new admiration */
{
/* if we are admiring this, add to both timelines */
diff --git a/html.c b/html.c
index 276caf6..4f3da63 100644
--- a/html.c
+++ b/html.c
@@ -1376,7 +1376,7 @@ int html_post_handler(d_char *req, char *q_path, d_char *payload, int p_size,
if (msg != NULL) {
enqueue_message(&snac, msg);
- timeline_admire(&snac, msg, xs_dict_get(msg, "object"), snac.actor, 1);
+ timeline_admire(&snac, xs_dict_get(msg, "object"), snac.actor, 1);
}
}
else
@@ -1385,7 +1385,7 @@ int html_post_handler(d_char *req, char *q_path, d_char *payload, int p_size,
if (msg != NULL) {
enqueue_message(&snac, msg);
- timeline_admire(&snac, msg, xs_dict_get(msg, "object"), snac.actor, 0);
+ timeline_admire(&snac, xs_dict_get(msg, "object"), snac.actor, 0);
}
}
else
diff --git a/snac.h b/snac.h
index 1a09daf..7eea07b 100644
--- a/snac.h
+++ b/snac.h
@@ -92,7 +92,7 @@ int timeline_del(snac *snac, char *id);
d_char *timeline_simple_list(snac *snac, const char *idx_name, int skip, int show);
d_char *timeline_list(snac *snac, const char *idx_name, int skip, int show);
int timeline_add(snac *snac, char *id, char *o_msg);
-void timeline_admire(snac *snac, char *o_msg, char *id, char *admirer, int like);
+void timeline_admire(snac *snac, char *id, char *admirer, int like);
d_char *timeline_top_level(d_char *list);