Converted all ActivityObject::fromProfile to $profile->asActivityObject

This commit is contained in:
Mikael Nordfeldth
2014-07-02 18:50:28 +02:00
parent 1d981b826a
commit b63f6e949c
12 changed files with 24 additions and 29 deletions

View File

@@ -132,7 +132,7 @@ class Ostatus_profile extends Managed_DataObject
} else if ($this->isPeopletag()) {
return ActivityObject::fromPeopletag($this->localPeopletag());
} else {
return ActivityObject::fromProfile($this->localProfile());
return $this->localProfile()->asActivityObject();
}
}
@@ -156,7 +156,7 @@ class Ostatus_profile extends Managed_DataObject
$noun = ActivityObject::fromPeopletag($this->localPeopletag());
return $noun->asString('activity:' . $element);
} else {
$noun = ActivityObject::fromProfile($this->localProfile());
$noun = $this->localProfile()->asActivityObject();
return $noun->asString('activity:' . $element);
}
}