diff options
author | default <nobody@localhost> | 2022-10-20 10:34:32 +0200 |
---|---|---|
committer | default <nobody@localhost> | 2022-10-20 10:34:32 +0200 |
commit | a16600e3307050619d4866f95ebd0fb43034005c (patch) | |
tree | 45ade1fdcb755d5589452e2a66239d0cae7e71eb /data.c | |
parent | 394a4a4077b3b86b59c107c2fbef61805ab030e1 (diff) |
Better 'Delete' message logging.
Diffstat (limited to 'data.c')
-rw-r--r-- | data.c | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -321,10 +321,11 @@ d_char *timeline_find(snac *snac, char *id) } -void timeline_del(snac *snac, char *id) +int timeline_del(snac *snac, char *id) /* deletes a message from the timeline */ { - xs *fn = _timeline_find_fn(snac, id); + int ret = 404; + xs *fn = _timeline_find_fn(snac, id); if (fn != NULL) { xs *lfn = NULL; @@ -337,7 +338,11 @@ void timeline_del(snac *snac, char *id) if (unlink(lfn) != -1) snac_debug(snac, 1, xs_fmt("timeline_del (local) %s", id)); + + ret = 200; } + + return ret; } |