pl-fe: maybe fix drafts

Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
marcin mikołajczak 2024-09-19 23:17:43 +02:00
parent 36aadabf5f
commit 943366b6bf

View file

@ -23,6 +23,7 @@ const buildStatus = (state: RootState, draftStatus: DraftStatus) => {
const account = state.entities[Entities.ACCOUNTS]?.store[me];
const status = statusSchema.parse({
id: 'draft',
account,
content: draftStatus.text.replace(new RegExp('\n', 'g'), '<br>'), /* eslint-disable-line no-control-regex */
created_at: draftStatus.schedule,