From f9a7b82d36adca91c35be2a664c492bcbe71b6cd Mon Sep 17 00:00:00 2001 From: =?utf8?q?Joshua=20R=C3=BCsweg?= Date: Mon, 6 Aug 2018 13:55:00 +0200 Subject: [PATCH] Remove superfluous parameters See #2508 --- .../install/files/js/WoltLabSuite/Core/Ui/Like/Handler.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Like/Handler.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Like/Handler.js index 8589418817..d4139bdf1e 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Like/Handler.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Like/Handler.js @@ -68,12 +68,6 @@ define( DomChangeListener.add('WoltLabSuite/Core/Ui/Like/Handler-' + objectType, this.initContainers.bind(this)); new UiReactionHandler(this._objectType, { - // permissions - canReact: this._options.canLike, - canReactToOwnContent: this._options.canLikeOwnContent, - canViewReactions: this._options.canViewSummary, - - // selectors containerSelector: this._options.containerSelector, summaryListSelector: '.reactionSummaryList' }); @@ -129,7 +123,7 @@ define( isSummaryPosition = false; } - if (badgeContainer !== null && this._options.canViewSummary) { + if (badgeContainer !== null) { summaryList = elCreate('ul'); summaryList.className = 'reactionSummaryList' + (isSummaryPosition ? ' likesSummary' : ' reactionSummaryListTiny') + ((isSummaryPosition && this._options.badgeClassNames) ? ' ' + this._options.badgeClassNames : ''); -- 2.20.1