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

com.woltlab.wcf/templates/__commentJavaScript.tpl

index 3dbe5c32ddaa1ea790ed1c4a9ce0fc7e47b3d586..c717c51d87a34bc04b288f1432dcb386a861da35 100644 (file)
                new {if $commentHandlerClass|isset}{@$commentHandlerClass}{else}WCF.Comment.Handler{/if}('{$commentContainerID}');
                {if MODULE_LIKE && $commentList->getCommentManager()->supportsLike() && $__wcf->getSession()->getPermission('user.like.canViewLike') || $__wcf->getSession()->getPermission('user.like.canLike')}
                        require(['WoltLabSuite/Core/Ui/Reaction/Handler'], function(UiReactionHandler) {
-                               var canLike = {if $__wcf->getUser()->userID && $__wcf->getSession()->getPermission('user.like.canLike')}true{else}false{/if};
-                               var canLikeOwnContent = {if LIKE_ALLOW_FOR_OWN_CONTENT}true{else}false{/if};
-                               
                                new UiReactionHandler('com.woltlab.wcf.comment', {
-                                       // settings
-                                       badgeClassNames: 'separatorLeft',
-                                       markListItemAsActive: true,
-                                       renderAsButton: false,
-                                       
-                                       // permissions
-                                       canLike: canLike,
-                                       canLikeOwnContent: canLikeOwnContent,
-                                       
                                        // selectors
                                        containerSelector: 'li.comment',
                                        summaryListSelector: '.reactionSummaryList',
                                        isButtonGroupNavigation: true
                                });
                                
-                               
                                new UiReactionHandler('com.woltlab.wcf.comment.response', {
-                                       // settings
-                                       badgeClassNames: 'separatorLeft',
-                                       markListItemAsActive: true,
-                                       renderAsButton: false,
-                                       
-                                       // permissions
-                                       canLike: canLike,
-                                       canLikeOwnContent: canLikeOwnContent,
-                                       
                                        // selectors
                                        containerSelector: '.commentResponse',
                                        summaryListSelector: '.reactionSummaryList',