Change post owner (#7752)

* feat: #7749, allow array of keys for setObject

* feat: sortedSetRemoveBulk

* feat: test for bulk remove

* feat: #7083, ability to change post ownership

* feat: #7083, fix tid:<tid>:posters

* feat: #7083, front end

* fix: #7752, psql methods

* fix: add missing await

* fix: maybe psql
This commit is contained in:
Barış Soner Uşaklı
2019-07-12 14:06:09 -04:00
committed by GitHub
parent 5b746d53e7
commit 53e1b349ae
15 changed files with 395 additions and 26 deletions

View File

@@ -207,6 +207,13 @@ define('forum/topic/postTools', [
});
});
postContainer.on('click', '[component="post/change-owner"]', function () {
var btn = $(this);
require(['forum/topic/change-owner'], function (changeOwner) {
changeOwner.init(btn.parents('[data-pid]'));
});
});
postContainer.on('click', '[component="post/ban-ip"]', function () {
var ip = $(this).attr('data-ip');
socket.emit('blacklist.addRule', ip, function (err) {