function onHandleQueuedNotice($notice)
{
- if ($notice->is_local == 1) {
+ if (intval($notice->is_local) === Notice::LOCAL_PUBLIC) {
// Try to avoid actually mucking with the
// notice content
$c = $notice->content;
$profile->nickname,
common_exact_date($this->notice->created)),
'excerpt' => $this->notice->content,
- 'url' => $this->notice->uri,
+ 'url' => $this->notice->getUrl(),
'blog_name' => $profile->nickname);
$fetcher = Auth_Yadis_Yadis::getHTTPFetcher();
}
}
- function userAgent()
+ public function version()
{
- return 'LinkbackPlugin/'.LINKBACKPLUGIN_VERSION .
- ' StatusNet/' . STATUSNET_VERSION;
+ return LINKBACKPLUGIN_VERSION;
}
- function onPluginVersion(&$versions)
+ function onPluginVersion(array &$versions)
{
$versions[] = array('name' => 'Linkback',
'version' => LINKBACKPLUGIN_VERSION,