Start reworking Bookmark plugin for more modern code

This commit is contained in:
Mikael Nordfeldth
2015-10-10 21:53:45 +02:00
parent 18f07a48e8
commit cae43344ec
3 changed files with 40 additions and 34 deletions

View File

@@ -281,10 +281,14 @@ abstract class ActivityHandlerPlugin extends Plugin
*
* @return boolean hook value
*/
function onNoticeDeleteRelated(Notice $notice)
public function onNoticeDeleteRelated(Notice $notice)
{
if ($this->isMyNotice($notice)) {
$this->deleteRelated($notice);
try {
$this->deleteRelated($notice);
} catch (AlreadyFulfilledException $e) {
// Nothing to see here, it's obviously already gone...
}
}
// Always continue this event in our activity handling plugins.