Fix: Incorporate Unicode control character protection directly in username components

This commit is contained in:
Lilia 2025-04-06 23:23:30 +09:00
parent acff4763b9
commit 3eb8264de5
No known key found for this signature in database
2 changed files with 6 additions and 2 deletions

View File

@ -4,7 +4,9 @@ SPDX-License-Identifier: AGPL-3.0-only
-->
<template>
<EmMfm :text="user.name ?? user.username" :author="user" :plain="true" :nowrap="nowrap" :emojiUrls="user.emojis"/>
<span style="unicode-bidi: plaintext; display: inline-block;">
<EmMfm :text="user.name ?? user.username" :author="user" :plain="true" :nowrap="nowrap" :emojiUrls="user.emojis"/>
</span>
</template>
<script lang="ts" setup>

View File

@ -4,7 +4,9 @@ SPDX-License-Identifier: AGPL-3.0-only
-->
<template>
<Mfm :text="user.name ?? user.username" :author="user" :plain="true" :nowrap="nowrap" :emojiUrls="user.emojis"/>
<span style="unicode-bidi: plaintext; display: inline-block;">
<Mfm :text="user.name ?? user.username" :author="user" :plain="true" :nowrap="nowrap" :emojiUrls="user.emojis"/>
</span>
</template>
<script lang="ts" setup>