1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-29 21:10:31 +02:00

[ticket/16782] Use alternative template for mention BBCode

PHPBB3-16782
This commit is contained in:
Marc Alexander
2021-05-24 15:09:10 +02:00
parent f3c426389c
commit b305be06c9

View File

@@ -293,7 +293,7 @@
itemClass: 'mention-item',
menuItemTemplate,
selectTemplate(item) {
return '[mention=' + item.type + ':' + item.id + ']' + item.name + '[/mention]';
return '[mention ' + (item.type === 'g' ? 'group_id=' : 'user_id=') + item.id + ']' + item.name + '[/mention]';
},
menuItemLimit: mentionNamesLimit,
values(text, cb) {