[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

@@ -41,6 +41,7 @@ use DateTimeInterface;
class Note extends Entity
{
// {{{ Autocode
private int $id;
private int $gsactor_id;
private ?string $content;
@@ -199,7 +200,7 @@ class Note extends Entity
Event::handle('GetAvatarUrl', [$this->getActorNickname(), &$url]);
return $url;
}
public function getAllNotes(int $noteScope): array
public static function getAllNotes(int $noteScope): array
{
return DB::sql('select * from note n ' .
'where n.reply_to is null and (n.scope & :notescope) <> 0 ' .