$stored->setPref('ostatus', 'self', $self);
}
+ if ($self && common_valid_http_url($self)) {
+ $stored->setPref('ostatus', 'self', $self);
+ }
+
// Only save 'attention' and metadata stuff (URLs, tags...) stuff if
// the activityverb is a POST (since stuff like repeat, favorite etc.
// reasonably handle notifications themselves.
/**
* Convert a notice into an activity for export.
*
- * @param Profile $scoped The currently logged in/scoped profile
+ * @param Profile $scoped The currently logged in/scoped profile
*
* @return Activity activity object representing this Notice.
+ * @throws ClientException
+ * @throws ServerException
*/
function asActivity(Profile $scoped=null)
$object->selfLink = null;
}
- $object->extra[] = array('status_net', array('notice_id' => $this->id));
+ $object->extra[] = array('statusnet:notice_id', null, $this->id);
Event::handle('EndActivityObjectFromNotice', array($this, &$object));
}