diff --git a/web/app/components/comment/comment.jsx b/web/app/components/comment/comment.jsx index d59e0b70..92df6ff7 100644 --- a/web/app/components/comment/comment.jsx +++ b/web/app/components/comment/comment.jsx @@ -360,6 +360,7 @@ export default class Comment extends Component { * @return {(string|null)} */ getVoteDisabledReason() { + if (this.props.mods && this.props.mods.view === 'user') return 'Voting disabled in last comments'; if (this.isGuest()) return 'Only authorized users are allowed to vote'; const info = store.get('info'); if (info && info.read_only) return "You can't vote on read-only topics"; diff --git a/web/app/remark.js b/web/app/remark.js index 74f0a272..a4e7a751 100644 --- a/web/app/remark.js +++ b/web/app/remark.js @@ -49,7 +49,8 @@ function init() { isDefaultPicture: params.isDefaultPicture != 0, picture: params.picture, }; - store.set('user', user); + store.set('user', {}); + store.set('target-user', user); const onClose = () => { if (window.parent) { window.parent.postMessage(JSON.stringify({ isUserInfoShown: false }), '*');