* @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');
}
/**