Merge pull request #3952 from tobiasd/20171125-silentium2

update to the silence script
This commit is contained in:
Hypolite Petovan 2017-11-25 11:14:54 -05:00 committed by GitHub
commit 05a09adb3b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5,16 +5,16 @@
* @brief tool to silence accounts on the global community page * @brief tool to silence accounts on the global community page
* *
* With this tool, you can silence an account on the global community page. * With this tool, you can silence an account on the global community page.
* Postings from silenced accounts will not be displayes on the community * Postings from silenced accounts will not be displayed on the community
* page. This silencing does only affect the display on the community page, * page. This silencing does only affect the display on the community page,
* accounts following the silenced accounts will still get their postings. * accounts following the silenced accounts will still get their postings.
* *
* Usage: pass the URL of the to be silenced account as only parameter * Usage: pass the URL of the profile to be silenced account as only parameter
* at the command line when running this tool. E.g. * at the command line when running this tool. E.g.
* *
* $> util/global_community_silence.php http://example.com/profile/bob * $> util/global_community_silence.php http://example.com/profile/bob
* *
* will silence bob@example.com so that his postings wont appear at * will silence bob@example.com so that his postings won't appear at
* the global community page. * the global community page.
* *
* Author: Tobias Diekershoff * Author: Tobias Diekershoff
@ -36,11 +36,11 @@ if ($argc!=2 || $argv[1]=="-h" || $argv[1]=="--help" || $argv[1]=="-?") {
use Friendica\Database\DBM; use Friendica\Database\DBM;
use Friendica\Network\Probe; use Friendica\Network\Probe;
require_once("boot.php"); require_once 'boot.php';
require_once('include/dba.php'); require_once 'include/dba.php';
require_once("include/text.php"); require_once 'include/text.php';
$a = get_app(); $a = get_app();
require_once ".htconfig.php"; require_once '.htconfig.php';
dba::connect($db_host, $db_user, $db_pass, $db_data); dba::connect($db_host, $db_user, $db_pass, $db_data);
unset($db_host, $db_user, $db_pass, $db_data); unset($db_host, $db_user, $db_pass, $db_data);