diff --git a/extensions/mentions/CHANGELOG.md b/extensions/mentions/CHANGELOG.md index 7f98a4a44..f8dfb03f6 100644 --- a/extensions/mentions/CHANGELOG.md +++ b/extensions/mentions/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## [1.1.1](https://github.com/flarum/mentions/compare/v1.1.0...v1.1.1) + +### Fixed +- Broken autocompleted user mention format (https://github.com/flarum/mentions/pull/74) + ## [1.1.0](https://github.com/flarum/mentions/compare/v1.0.0...v1.1.0) ### Changed diff --git a/extensions/mentions/js/src/forum/utils/getMentionText.js b/extensions/mentions/js/src/forum/utils/getMentionText.js index 5a6c97361..99e92af30 100644 --- a/extensions/mentions/js/src/forum/utils/getMentionText.js +++ b/extensions/mentions/js/src/forum/utils/getMentionText.js @@ -27,7 +27,7 @@ export default function getMentionText(user, postId) { } // @"Display name"#UserID const cleanText = getCleanDisplayName(user); - return `@"${cleanText}"${user.id()}`; + return `@"${cleanText}"#${user.id()}`; } else { // @"Display name"#pPostID const cleanText = getCleanDisplayName(user);