Fixed crash when unfollowing.

This commit is contained in:
default 2022-12-13 16:02:41 +01:00
parent a67a82d545
commit 6056077031

2
data.c
View file

@ -748,7 +748,7 @@ int follower_del(snac *snac, const char *actor)
{ {
int ret = object_user_cache_del(snac, actor, "followers"); int ret = object_user_cache_del(snac, actor, "followers");
snac_debug(snac, 2, xs_fmt("follower_del %s %s", actor)); snac_debug(snac, 2, xs_fmt("follower_del %s", actor));
return ret == -1 ? 404 : 200; return ret == -1 ? 404 : 200;
} }