diff options
author | default <nobody@localhost> | 2022-09-25 18:28:15 +0200 |
---|---|---|
committer | default <nobody@localhost> | 2022-09-25 18:28:15 +0200 |
commit | 6169932733a2fdc7d00a29669960770c4fbaf5d3 (patch) | |
tree | 17ffceb40a8652c448160d7d091cfb5b7ad2f357 /data.c | |
parent | bb70101feca64224759581d73404240bb4d35f5b (diff) |
New function timeline_request().
Diffstat (limited to 'data.c')
-rw-r--r-- | data.c | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -290,6 +290,15 @@ d_char *_timeline_find_fn(snac *snac, char *id) } +int timeline_here(snac *snac, char *id) +/* checks if an object is already downloaded */ +{ + xs *fn = _timeline_find_fn(snac, id); + + return fn != NULL; +} + + d_char *timeline_find(snac *snac, char *id) /* gets a message from the timeline by id */ { @@ -549,6 +558,8 @@ void timeline_add(snac *snac, char *id, char *o_msg, char *parent) msg = xs_dict_set(msg, "_snac", md); _timeline_write(snac, id, msg, parent); + + snac_log(snac, xs_fmt("timeline_add %s", id)); } @@ -593,6 +604,9 @@ void timeline_admire(snac *snac, char *id, char *admirer, int like) unlink(ofn); _timeline_write(snac, id, msg, xs_dict_get(meta, "parent")); + + snac_log(snac, xs_fmt("timeline_admire (%s) %s %s", + like ? "Like" : "Announce", id, admirer)); } } } |