|
|
|
|
@ -13,8 +13,9 @@ import ChevronRightIcon from '@/material-icons/400-24px/chevron_right.svg?react'
|
|
|
|
|
import { Icon } from 'mastodon/components/icon';
|
|
|
|
|
import { Poll } from 'mastodon/components/poll';
|
|
|
|
|
import { identityContextPropShape, withIdentity } from 'mastodon/identity_context';
|
|
|
|
|
import { autoPlayGif, isFeatureEnabled, languages as preloadedLanguages } from 'mastodon/initial_state';
|
|
|
|
|
import { autoPlayGif, languages as preloadedLanguages } from 'mastodon/initial_state';
|
|
|
|
|
import { EmojiHTML } from '../features/emoji/emoji_html';
|
|
|
|
|
import { isModernEmojiEnabled } from '../utils/environment';
|
|
|
|
|
|
|
|
|
|
const MAX_HEIGHT = 706; // 22px * 32 (+ 2px padding at the top)
|
|
|
|
|
|
|
|
|
|
@ -24,7 +25,7 @@ const MAX_HEIGHT = 706; // 22px * 32 (+ 2px padding at the top)
|
|
|
|
|
* @returns {string}
|
|
|
|
|
*/
|
|
|
|
|
export function getStatusContent(status) {
|
|
|
|
|
if (isFeatureEnabled('modern_emojis')) {
|
|
|
|
|
if (isModernEmojiEnabled()) {
|
|
|
|
|
return status.getIn(['translation', 'content']) || status.get('content');
|
|
|
|
|
}
|
|
|
|
|
return status.getIn(['translation', 'contentHtml']) || status.get('contentHtml');
|
|
|
|
|
|