Notify replies and repeats
This is especially useful for partial federation with remote accounts that are not fully OStatus-enabled but support a pingback protocol. Such accounts will still be notified of replies and repeats of their content even without OStatus support, thus adding to the federated universe.
This commit is contained in:
parent
b43294ec6f
commit
63fd35dffa
|
@ -68,6 +68,14 @@ class LinkbackPlugin extends Plugin
|
||||||
// Ignoring results
|
// Ignoring results
|
||||||
common_replace_urls_callback($c,
|
common_replace_urls_callback($c,
|
||||||
array($this, 'linkbackUrl'));
|
array($this, 'linkbackUrl'));
|
||||||
|
|
||||||
|
if($notice->isRepeat()) {
|
||||||
|
$repeat = Notice::getByID($notice->repeat_of);
|
||||||
|
$this->linkbackUrl($repeat->getUrl());
|
||||||
|
} else if(!empty($notice->reply_to)) {
|
||||||
|
$parent = $notice->getParent();
|
||||||
|
$this->linkbackUrl($parent->getUrl());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user