1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-23 10:01:55 +02:00

Merge pull request #6217 from marc1706/ticket/16782

[ticket/16782] Use alternative template for mention BBCode
This commit is contained in:
Marc Alexander
2021-05-26 21:20:30 +02:00
committed by GitHub

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) {