}
switch ($act->verb) {
- case ActivityVerb::FAVORITE:
+/* case ActivityVerb::FAVORITE:
$this->log(LOG_INFO,
"Moving favorite of {$act->objects[0]->id} by ".
"{$act->actor->id} to {$remote->nickname}.");
'notice_id' => $notice->id));
$fave->delete();
}
- break;
+ break;*/
case ActivityVerb::POST:
$this->log(LOG_INFO,
"Moving notice {$act->objects[0]->id} by ".
$sink->postActivity($act);
$notice = Notice::getKV('uri', $act->objects[0]->id);
if (!empty($notice)) {
- $notice->delete();
+ $notice->deleteAs($user->getProfile(), false);
}
break;
case ActivityVerb::JOIN:
"Changing sub to {$act->objects[0]->id}".
"by {$act->actor->id} to {$remote->nickname}.");
$otherProfile = $otherUser->getProfile();
- Subscription::start($otherProfile, $remote);
+ Subscription::ensureStart($otherProfile, $remote);
Subscription::cancel($otherProfile, $user->getProfile());
} else {
$this->log(LOG_NOTICE,