mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 20:16:04 +01:00
a bunch of changes here... allowing user profiles to be flagged, #5232
This commit is contained in:
@@ -167,10 +167,11 @@ define('forum/topic/postTools', ['share', 'navigator', 'components', 'translator
|
||||
|
||||
postContainer.on('click', '[component="post/flag"]', function () {
|
||||
var pid = getData($(this), 'data-pid');
|
||||
var username = getData($(this), 'data-username');
|
||||
var userslug = getData($(this), 'data-userslug');
|
||||
require(['forum/topic/flag'], function (flag) {
|
||||
flag.showFlagModal(pid, username, userslug);
|
||||
require(['flags'], function (flags) {
|
||||
flags.showFlagModal({
|
||||
type: 'post',
|
||||
id: pid
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user