[ENTITY][Note] NoteType now becomes a varchar as predicted

This commit is contained in:
2022-02-27 02:04:48 +00:00
parent a9b34b75b6
commit 5495a3c5ec
3 changed files with 18 additions and 21 deletions

View File

@@ -36,7 +36,6 @@ use App\Core\VisibilityScope;
use App\Entity\Activity;
use App\Entity\Actor;
use App\Entity\Note;
use App\Entity\NoteType;
use App\Util\Common;
use App\Util\Exception\BugFoundException;
use App\Util\Exception\ClientException;
@@ -247,7 +246,7 @@ class Posting extends Component
rendered: $rendered,
source: $source,
);
$note->setType(NoteType::PAGE);
$note->setType('page');
$note->setTitle($title);
if ($flush_and_notify) {