This commit is contained in:
mattyatea 2024-05-17 11:44:57 +09:00
parent ab94d15d38
commit ce3a019d81
3 changed files with 5 additions and 3 deletions

View file

@ -39,6 +39,7 @@ type MfmProps = {
text: string;
plain?: boolean;
nowrap?: boolean;
emojireq?: boolean;
author?: {
id: ID;
username: string;
@ -474,7 +475,7 @@ export default function (props: MfmProps, { emit }: { emit: SetupContext<MfmEven
case 'emojiCode': {
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
if (props.author?.host == null ) {
if (props.author?.host == null && props.emojireq ) {
return [h(MkCustomEmoji, {
key: Math.random(),
name: token.props.name,