Commit 15852e3 1 parent 65d2057 commit 15852e3 Copy full SHA for 15852e3
File tree 1 file changed +4
-4
lines changed
resources/js/Pages/Vault/Journal/Post
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -181,8 +181,9 @@ const update = () => {
181
181
if (duplicateContacts .length > 0 ) {
182
182
// If there are duplicate contacts with the same name and different IDs, mark as invalid
183
183
invalidMentionsFound = true ;
184
- invalidMentionText = ` ${ trans (' Cannot mention a contact when there are 2 identical contacts linked: @name' , { name })} ` ;
185
- return ` @${ name} (duplicate contacts exist)` ;
184
+ invalidMentionText =
185
+ trans (' Cannot mention a contact when there are 2 identically named contacts linked' ) + ` : @${ name} ` ;
186
+ return ' ' ;
186
187
}
187
188
188
189
return ` {{{CONTACT-ID:${ contact .id } |${ name} }}}` ;
@@ -192,8 +193,7 @@ const update = () => {
192
193
invalidMentionsFound = true ;
193
194
invalidMentionText = trans (' Invalid mention' ) + ` : @${ name} ` ;
194
195
195
- // If no contact is found, remove apostrophes and add fallback text
196
- return ` @${ name} (contact not linked to post)` ;
196
+ return ' ' ;
197
197
});
198
198
}
199
199
});
You can’t perform that action at this time.
0 commit comments