mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-03-18 10:30:49 +01:00
Merge branch 'master' into develop
This commit is contained in:
@@ -287,7 +287,9 @@ define('forum/topic/postTools', [
|
||||
|
||||
showStaleWarning(function () {
|
||||
let username = getUserSlug(button);
|
||||
if (getData(button, 'data-uid') === '0' || !getData(button, 'data-userslug')) {
|
||||
const postUid = getData(button, 'data-uid');
|
||||
const isSelfPost = postUid === String(app.user.uid);
|
||||
if (isSelfPost || postUid === '0' || !getData(button, 'data-userslug')) {
|
||||
username = '';
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user