From d63dcac087df12033dd71097c1406c61dad4a6ed Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Tue, 15 Sep 2020 11:51:22 +0200 Subject: [PATCH] Remove isContentAuthor from UserProfileCommentManager MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Defining the owner of the user profile as being the “author” of the profile is a bit wonky and can cause confusion due to the object author badge. see https://community.woltlab.com/thread/285649-5-3-autor-label-an-der-eigenen-pinnwand/ --- .../comment/manager/UserProfileCommentManager.class.php | 8 -------- 1 file changed, 8 deletions(-) diff --git a/wcfsetup/install/files/lib/system/comment/manager/UserProfileCommentManager.class.php b/wcfsetup/install/files/lib/system/comment/manager/UserProfileCommentManager.class.php index ae9aaccc0d..29dc8a061a 100644 --- a/wcfsetup/install/files/lib/system/comment/manager/UserProfileCommentManager.class.php +++ b/wcfsetup/install/files/lib/system/comment/manager/UserProfileCommentManager.class.php @@ -251,12 +251,4 @@ class UserProfileCommentManager extends AbstractCommentManager implements IViewa } } } - - /** - * @inheritDoc - */ - public function isContentAuthor($commentOrResponse) { - $userID = $this->getObjectID($commentOrResponse); - return $commentOrResponse->userID && $userID == $commentOrResponse->userID; - } } -- 2.20.1