- $linkRel = $link->getAttribute(ActivityUtils::REL);
-
- // XXX: Deprecate this in favour of "mentioned" from Salmon spec
- // http://salmon-protocol.googlecode.com/svn/trunk/draft-panzer-salmon-00.html#SALR
- if ($linkRel == self::ATTENTION) {
- $attention[] = $link->getAttribute(self::HREF);
- } elseif ($linkRel == self::MENTIONED) {
- $attention[] = $link->getAttribute(self::HREF);
+ $linkRel = $link->getAttribute(ActivityUtils::REL);
+ $linkHref = $link->getAttribute(self::HREF);
+ if ($linkRel == self::MENTIONED && $linkHref !== '') {
+ $this->attention[$linkHref] = $link->getAttribute(ActivityContext::OBJECTTYPE);