mirror of
https://github.com/sbrl/Pepperminty-Wiki.git
synced 2024-11-26 05:32:59 +00:00
Bugfix: Don't send an email to users to edit pages on their watchlists
This commit is contained in:
parent
f6f562790e
commit
95e06c5b8b
1 changed files with 6 additions and 0 deletions
|
@ -225,9 +225,15 @@ register_module([
|
||||||
|
|
||||||
$usernames = [];
|
$usernames = [];
|
||||||
foreach($settings->users as $username => $user_data) {
|
foreach($settings->users as $username => $user_data) {
|
||||||
|
// Skip if this is the user that made the edit
|
||||||
|
if($username == $env->user)
|
||||||
|
continue;
|
||||||
|
|
||||||
|
// If the user's watchlist is empty, then there's no point in checking it
|
||||||
if(empty($user_data->watchlist))
|
if(empty($user_data->watchlist))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
// If it's not in the watchlist, then we shouldn't send an email
|
||||||
if(!in_array($env->page, $user_data->watchlist))
|
if(!in_array($env->page, $user_data->watchlist))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue