From a16600e3307050619d4866f95ebd0fb43034005c Mon Sep 17 00:00:00 2001 From: default Date: Thu, 20 Oct 2022 10:34:32 +0200 Subject: Better 'Delete' message logging. --- data.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'data.c') diff --git a/data.c b/data.c index e86f97f..cef4028 100644 --- a/data.c +++ b/data.c @@ -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; } -- cgit v1.2.3