mirror of
https://codeberg.org/yeentown/barkey.git
synced 2025-07-07 20:44:34 +00:00
don't insert mentions for the current user
This commit is contained in:
parent
df0d8045d5
commit
d06e1e3080
1 changed files with 4 additions and 1 deletions
|
@ -317,7 +317,10 @@ if (props.reply && (props.reply.user.username !== $i.username || (props.reply.us
|
||||||
}
|
}
|
||||||
|
|
||||||
if (props.reply && props.reply.mentionHandles) {
|
if (props.reply && props.reply.mentionHandles) {
|
||||||
for (const mention of Object.values(props.reply.mentionHandles)) {
|
for (const [user, mention] of Object.entries(props.reply.mentionHandles)) {
|
||||||
|
// Don't mention ourself
|
||||||
|
if (user === $i.id) continue;
|
||||||
|
|
||||||
// 重複は除外
|
// 重複は除外
|
||||||
if (text.value.includes(`${mention} `)) continue;
|
if (text.value.includes(`${mention} `)) continue;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue