diff options
| author | default <nobody@localhost> | 2022-09-28 19:59:19 +0200 |
|---|---|---|
| committer | default <nobody@localhost> | 2022-09-28 19:59:19 +0200 |
| commit | c38cc09e4c593f4c7a53df6e289e8b6af03bd9ca (patch) | |
| tree | 775b8f029f31195de4e02f54c5dae28c1d527350 /data.c | |
| parent | 484a7f1fd8305ea395ae46681e17e06ac2d81565 (diff) | |
Process 'Undo' + 'Follow'.
Diffstat (limited to 'data.c')
| -rw-r--r-- | data.c | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -217,13 +217,17 @@ int follower_add(snac *snac, char *actor, char *msg) int follower_del(snac *snac, char *actor) /* deletes a follower */ { + int status = 200; xs *fn = _follower_fn(snac, actor); - unlink(fn); + if (fn != NULL) + unlink(fn); + else + status = 404; snac_debug(snac, 2, xs_fmt("follower_del %s %s", actor, fn)); - return 200; + return status; } |