3 namespace Friendica\Core\Console;
5 use Friendica\Core\L10n;
8 * @brief tool to block an account from the node
10 * With this tool, you can block an account in such a way, that no postings
11 * or comments this account writes are accepted to the node.
13 * License: AGPLv3 or later, same as Friendica
15 * @author Tobias Diekershoff <mrpetovan@gmail.com>
16 * @author Hypolite Petovan <mrpetovan@gmail.com>
18 class PostUpdate extends \Asika\SimpleConsole\Console
20 protected function doExecute()
24 if (count($this->args) > 0) {
25 throw new \Asika\SimpleConsole\CommandArgsException('Too many arguments');
28 if ($a->isInstallMode()) {
29 throw new \RuntimeException('Database isn\'t ready or populated yet');
32 echo L10n::t('Execute pending post updates.') . "\n";
34 while (!\Friendica\Database\PostUpdate::update()) {
38 echo "\n" . L10n::t('All pending post updates are done.') . "\n";