use wcf\system\email\Email;
use wcf\system\request\LinkHandler;
use wcf\system\user\notification\object\CommentResponseUserNotificationObject;
-use wcf\system\WCF;
/**
* User notification event for profile's owner for comment responses.
*/
protected function prepare() {
CommentRuntimeCache::getInstance()->cacheObjectID($this->getUserNotificationObject()->commentID);
- UserProfileRuntimeCache::getInstance()->cacheObjectID($this->additionalData['userID']);
+ UserProfileRuntimeCache::getInstance()->cacheObjectIDs([
+ $this->additionalData['userID'],
+ $this->additionalData['objectID']
+ ]);
}
/**
* @inheritDoc
*/
public function getLink() {
- return LinkHandler::getInstance()->getLink('User', ['object' => WCF::getUser()], '#wall');
+ return LinkHandler::getInstance()->getLink(
+ 'User',
+ ['object' => UserProfileRuntimeCache::getInstance()->getObject($this->additionalData['objectID'])],
+ '#wall'
+ );
}
/**