Fix code standards
This commit is contained in:
parent
c836b0ee8d
commit
88235fbc6c
|
@ -24,14 +24,11 @@ namespace Friendica\Module\Moderation;
|
||||||
use Friendica\App;
|
use Friendica\App;
|
||||||
use Friendica\Content\Pager;
|
use Friendica\Content\Pager;
|
||||||
use Friendica\Content\Text\BBCode;
|
use Friendica\Content\Text\BBCode;
|
||||||
use Friendica\Content\Text\Plaintext;
|
|
||||||
use Friendica\Core\L10n;
|
use Friendica\Core\L10n;
|
||||||
use Friendica\Core\Renderer;
|
use Friendica\Core\Renderer;
|
||||||
use Friendica\Core\Session\Capability\IHandleUserSessions;
|
use Friendica\Core\Session\Capability\IHandleUserSessions;
|
||||||
use Friendica\Database\Database;
|
use Friendica\Database\Database;
|
||||||
use Friendica\Database\DBA;
|
use Friendica\Database\DBA;
|
||||||
use Friendica\Model\Contact;
|
|
||||||
use Friendica\Model\Post;
|
|
||||||
use Friendica\Module\BaseModeration;
|
use Friendica\Module\BaseModeration;
|
||||||
use Friendica\Module\Response;
|
use Friendica\Module\Response;
|
||||||
use Friendica\Navigation\SystemMessages;
|
use Friendica\Navigation\SystemMessages;
|
||||||
|
@ -67,6 +64,7 @@ class Reports extends BaseModeration
|
||||||
while ($report = $this->database->fetch($query)) {
|
while ($report = $this->database->fetch($query)) {
|
||||||
$report['posts'] = [];
|
$report['posts'] = [];
|
||||||
$report['created'] = DateTimeFormat::local($report['created'], DateTimeFormat::MYSQL);
|
$report['created'] = DateTimeFormat::local($report['created'], DateTimeFormat::MYSQL);
|
||||||
|
|
||||||
$reports[$report['id']] = $report;
|
$reports[$report['id']] = $report;
|
||||||
}
|
}
|
||||||
$this->database->close($query);
|
$this->database->close($query);
|
||||||
|
@ -79,6 +77,7 @@ class Reports extends BaseModeration
|
||||||
if (in_array($post['rid'], array_keys($reports))) {
|
if (in_array($post['rid'], array_keys($reports))) {
|
||||||
$post['created'] = DateTimeFormat::local($post['created'], DateTimeFormat::MYSQL);
|
$post['created'] = DateTimeFormat::local($post['created'], DateTimeFormat::MYSQL);
|
||||||
$post['body'] = BBCode::toPlaintext($post['body']);
|
$post['body'] = BBCode::toPlaintext($post['body']);
|
||||||
|
|
||||||
$reports[$post['rid']]['posts'][] = $post;
|
$reports[$post['rid']]['posts'][] = $post;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user