We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9336608 commit b033a98Copy full SHA for b033a98
cronjobs/findblock.php
@@ -157,8 +157,12 @@
157
// Notify users
158
$aAccounts = $notification->getNotificationAccountIdByType('new_block');
159
if (is_array($aAccounts)) {
160
-
161
- $finder = $user->getUserName($iAccountId);
+ if ($user->getUserNameAnon($iAccountId) == 1) {
+ $finder = "Anonymous";
162
+ } else {
163
+ $finder = $user->getUserName($iAccountId);
164
+ }
165
+
166
foreach ($aAccounts as $aData) {
167
$aMailData['height'] = $aBlock['height'];
168
$aMailData['subject'] = 'New Block';
0 commit comments