diff options
| author | 2017-04-10 19:09:21 +0200 | |
|---|---|---|
| committer | 2017-04-10 19:09:21 +0200 | |
| commit | 535aa35ba70d8cc584f37388692022272ab883b2 (patch) | |
| tree | 6cab70280f6d8fe576724f62c3ed4c928801feb5 /app/Controllers/userController.php | |
| parent | 5d54e47ff4065167a07085df07a590372ac5d636 (diff) | |
PSHB better unsubscribe
Cases when a user is deleted, or when a feed is deleted.
Removed random key do reduce the risk of subscribing several times to
the same PSHB feed.
Diffstat (limited to 'app/Controllers/userController.php')
| -rw-r--r-- | app/Controllers/userController.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/Controllers/userController.php b/app/Controllers/userController.php index f910cecd9..ddc0c6fe4 100644 --- a/app/Controllers/userController.php +++ b/app/Controllers/userController.php @@ -213,6 +213,7 @@ class FreshRSS_user_Controller extends Minz_ActionController { $userDAO = new FreshRSS_UserDAO(); $ok &= $userDAO->deleteUser($username); $ok &= recursive_unlink($user_data); + array_map('unlink', glob(PSHB_PATH . '/feeds/*/' . $username . '.txt')); } return $ok; } |
