Skip to content

Commit b033a98

Browse files
committed
Add anonymous check for users on block finder email notification
1 parent 9336608 commit b033a98

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

cronjobs/findblock.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,8 +157,12 @@
157157
// Notify users
158158
$aAccounts = $notification->getNotificationAccountIdByType('new_block');
159159
if (is_array($aAccounts)) {
160-
161-
$finder = $user->getUserName($iAccountId);
160+
if ($user->getUserNameAnon($iAccountId) == 1) {
161+
$finder = "Anonymous";
162+
} else {
163+
$finder = $user->getUserName($iAccountId);
164+
}
165+
162166
foreach ($aAccounts as $aData) {
163167
$aMailData['height'] = $aBlock['height'];
164168
$aMailData['subject'] = 'New Block';

0 commit comments

Comments
 (0)