Remove superfluous parameters
authorJoshua Rüsweg <josh@bastelstu.be>
Mon, 6 Aug 2018 11:55:00 +0000 (13:55 +0200)
committerJoshua Rüsweg <josh@bastelstu.be>
Mon, 6 Aug 2018 11:55:00 +0000 (13:55 +0200)
See #2508

wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Like/Handler.js

index 858941881762aa26f6a18678a88016383b795e0c..d4139bdf1e711b8d4b682976809c1fed1aa07cab 100644 (file)
@@ -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 : '');