More use of Profile, less User

This commit is contained in:
Mikael Nordfeldth
2014-07-28 09:25:05 +02:00
parent d11ce2ef3b
commit eb2f93ad2b
6 changed files with 19 additions and 21 deletions

View File

@@ -317,7 +317,7 @@ class ActivityPlugin extends Plugin
$notice = Notice::getKV('id', $fave->notice_id);
if (!empty($notice)) {
$cur = common_current_user();
$target = $notice->asActivity($cur);
$target = $notice->asActivity($cur->getProfile());
if ($target->verb == ActivityVerb::POST) {
// "I like the thing you posted"
$activity->objects = $target->objects;