mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-05-07 09:56:16 +02:00
fix: dont add self username when clicking reply
This commit is contained in:
@@ -287,7 +287,9 @@ define('forum/topic/postTools', [
|
|||||||
|
|
||||||
showStaleWarning(function () {
|
showStaleWarning(function () {
|
||||||
let username = getUserSlug(button);
|
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 = '';
|
username = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user