Moved functions into ActivityHandlerPlugin from MicroAppPlugin

Dummy functions in Favorite plugin so far
This commit is contained in:
Mikael Nordfeldth
2014-07-02 11:37:46 +02:00
parent d0da552722
commit 38bea34562
10 changed files with 388 additions and 369 deletions

View File

@@ -147,6 +147,20 @@ class FavoritePlugin extends ActivityHandlerPlugin
'format' => '(xml|json)'));
}
public function saveNoticeFromActivity(Activity $activity, Profile $actor, array $options=array())
{
}
public function activityObjectFromNotice(Notice $notice)
{
}
public function deleteRelated(Notice $notice)
{
}
// API stuff
/**
* Typically just used to fill out Twitter-compatible API status data.
*
@@ -180,6 +194,11 @@ class FavoritePlugin extends ActivityHandlerPlugin
public function onNoticeDeleteRelated(Notice $notice)
{
parent::onNoticeDeleteRelated($notice);
// The below algorithm is because we have faves not stored as
// proper activities in Notice from legacy versions of SN/GNU social
$fave = new Fave();
$fave->notice_id = $notice->id;