mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-22 05:15:04 +00:00
Deleted unused argument in timeline_admire().
This commit is contained in:
parent
75f8554e38
commit
40b3f739d2
4 changed files with 6 additions and 6 deletions
|
@ -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;
|
||||
}
|
||||
|
|
2
data.c
2
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 */
|
||||
|
|
4
html.c
4
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
|
||||
|
|
2
snac.h
2
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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue