[WEB] Fix translations and small inconsistency when opening on web

This commit is contained in:
2021-04-10 22:32:47 +00:00
parent 8b5bd40421
commit 78548365da
6 changed files with 26 additions and 31 deletions

View File

@@ -94,14 +94,6 @@ abstract class Common
self::ensureLoggedIn()->getNickname();
}
public function getAllNotes(int $noteScope): array
{
return DB::sql('select * from note n ' .
"where n.reply_to is null and (n.scope & {$noteScope}) <> 0 " .
'order by n.created DESC',
['n' => 'App\Entity\Note']);
}
public static function ensureLoggedIn(): LocalUser
{
if (($user = self::user()) == null) {