Remove isContentAuthor from UserProfileCommentManager
authorTim Düsterhus <duesterhus@woltlab.com>
Tue, 15 Sep 2020 09:51:22 +0000 (11:51 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Tue, 15 Sep 2020 09:52:54 +0000 (11:52 +0200)
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/

wcfsetup/install/files/lib/system/comment/manager/UserProfileCommentManager.class.php

index ae9aaccc0d831442b424d8a8a108f0a77e918f24..29dc8a061aab21ce292c890142edd1378ec236a1 100644 (file)
@@ -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;
-       }
 }