mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-10 03:50:38 +03:00
Reworked purge_user() to be clearer.
This commit is contained in:
parent
9cb6216417
commit
143c73500b
13
data.c
13
data.c
@ -1575,14 +1575,15 @@ void purge_server(void)
|
|||||||
void purge_user(snac *snac)
|
void purge_user(snac *snac)
|
||||||
/* do the purge for this user */
|
/* do the purge for this user */
|
||||||
{
|
{
|
||||||
int days;
|
int priv_days, pub_days;
|
||||||
|
|
||||||
days = xs_number_get(xs_dict_get(srv_config, "timeline_purge_days"));
|
priv_days = xs_number_get(xs_dict_get(srv_config, "timeline_purge_days"));
|
||||||
_purge_subdir(snac, "hidden", days);
|
pub_days = xs_number_get(xs_dict_get(srv_config, "local_purge_days"));
|
||||||
_purge_subdir(snac, "private", days);
|
|
||||||
|
|
||||||
days = xs_number_get(xs_dict_get(srv_config, "local_purge_days"));
|
_purge_subdir(snac, "hidden", priv_days);
|
||||||
_purge_subdir(snac, "public", days);
|
_purge_subdir(snac, "private", priv_days);
|
||||||
|
|
||||||
|
_purge_subdir(snac, "public", pub_days);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user