Unneeded "info" messages removed
[friendica-addons.git/.git] / superblock / superblock.php
index aed125a..9ba9c6d 100644 (file)
@@ -68,7 +68,6 @@ function superblock_addon_settings_post(&$a, &$b)
 
        if (!empty($_POST['superblock-submit'])) {
                DI::pConfig()->set(local_user(), 'system', 'blocked',trim($_POST['superblock-words']));
-               info(DI::l10n()->t('SUPERBLOCK Settings saved.') . EOL);
        }
 }
 
@@ -95,7 +94,8 @@ function superblock_enotify_store(&$a,&$b) {
                }
        }
        if ($found) {
-               $b['abort'] = true;
+               // Empty out the fields
+               $b = [];
        }
 }
 
@@ -162,6 +162,5 @@ function superblock_init(&$a)
        }
 
        DI::pConfig()->set(local_user(), 'system', 'blocked', $words);
-       info(DI::l10n()->t('superblock settings updated') . EOL );
        exit();
 }