Merge branch 'refs/heads/pr/2008' into next
authorMarcel Werk <burntime@woltlab.com>
Fri, 1 Jul 2016 14:10:39 +0000 (16:10 +0200)
committerMarcel Werk <burntime@woltlab.com>
Fri, 1 Jul 2016 14:10:39 +0000 (16:10 +0200)
# Conflicts:

# wcfsetup/install/files/lib/system/user/notification/event/UserProfileCommentUserNotificationEvent.class.php

1  2 
wcfsetup/install/files/lib/system/user/notification/event/UserProfileCommentUserNotificationEvent.class.php

index 0ba22e3990dbc1238a90e039484e7cf1358260e1,3c8edbb4ed68fc065d12a2ecb8576ff2d0261f40..2f631d54c41a1cf5a19494ee76aea57e3a260b8f
@@@ -9,9 -9,11 +9,9 @@@ use wcf\system\request\LinkHandler
   * @author    Alexander Ebert
   * @copyright 2001-2016 WoltLab GmbH
   * @license   GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
 - * @package   com.woltlab.wcf
 - * @subpackage        system.user.notification.event
 - * @category  Community Framework
 + * @package   WoltLabSuite\Core\System\User\Notification\Event
   */
- class UserProfileCommentUserNotificationEvent extends AbstractUserNotificationEvent {
+ class UserProfileCommentUserNotificationEvent extends AbstractSharedUserNotificationEvent {
        /**
         * @inheritDoc
         */
         * @inheritDoc
         */
        public function getLink() {
-               return LinkHandler::getInstance()->getLink('User', ['id' => $this->userNotificationObject->objectID], '#wall');
 -              $user = UserProfileRuntimeCache::getInstance()->getObject($this->userNotificationObject->objectID);
 -
 -              return LinkHandler::getInstance()->getLink('User', ['object' => $user], '#wall');
++              return LinkHandler::getInstance()->getLink('User', ['object' => UserProfileRuntimeCache::getInstance()->getObject($this->userNotificationObject->objectID)], '#wall');
        }
        
        /**