forked from GNUsocial/gnu-social
[ActivityPub] Properly handle Actor URIs by using events correctly
This should fix nulls on explorer lookups inputed by postman after generate_followers/getSubscribers, that I think were caused by calling common_profile_uri that, curiously, only handles local profiles
This commit is contained in:
@@ -85,7 +85,7 @@ class Activitypub_notice
|
||||
'type' => 'Note',
|
||||
'published' => str_replace(' ', 'T', $notice->getCreated()) . 'Z',
|
||||
'url' => self::getUrl($notice),
|
||||
'attributedTo' => ActivityPubPlugin::actor_uri($profile),
|
||||
'attributedTo' => $profile->getUri(),
|
||||
'to' => $to,
|
||||
'cc' => $cc,
|
||||
'conversation' => $notice->getConversationUrl(),
|
||||
@@ -205,7 +205,7 @@ class Activitypub_notice
|
||||
|
||||
foreach ($mentions_profiles as $mp) {
|
||||
if (!$mp->hasBlocked($actor_profile)) {
|
||||
$act->context->attention[ActivityPubPlugin::actor_uri($mp)] = 'http://activitystrea.ms/schema/1.0/person';
|
||||
$act->context->attention[$mp->getUri()] = 'http://activitystrea.ms/schema/1.0/person';
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user