Merge branch 'develop' into hooks-migration

This commit is contained in:
marcin mikołajczak 2024-09-29 18:16:37 +02:00
commit 3b745c6171

View file

@ -5,7 +5,7 @@ import { Status as BaseStatus, StatusEdit as BaseStatusEdit, CustomEmoji } from
import emojify from 'pl-fe/features/emoji'; import emojify from 'pl-fe/features/emoji';
import { makeEmojiMap } from 'pl-fe/utils/normalizers'; import { makeEmojiMap } from 'pl-fe/utils/normalizers';
const sanitizeTitle = (text: string, emojiMap: any) => DOMPurify.sanitize(emojify(escapeTextContentForBrowser(text), emojiMap), { ALLOWED_TAGS: [] }); const sanitizeTitle = (text: string, emojiMap: any) => DOMPurify.sanitize(emojify(escapeTextContentForBrowser(text), emojiMap), { ALLOWED_TAGS: ['img'] });
const normalizePoll = (poll: Exclude<BaseStatus['poll'], null>) => { const normalizePoll = (poll: Exclude<BaseStatus['poll'], null>) => {
const emojiMap = makeEmojiMap(poll.emojis); const emojiMap = makeEmojiMap(poll.emojis);