cleanup and refactor

This commit is contained in:
Mike Macgirvin 2024-07-07 12:29:08 +10:00
parent b579e0a3fe
commit 55a26cd8c3

View file

@ -212,8 +212,6 @@ class Channel extends Controller
// we start loading content
Libprofile::load($which, $profile);
$isNomadic = PConfig::Get($channel['channel_id'], 'system', 'nomadicAP');
$attributedTo = Zlib\Channel::getDidResolver($channel, true);
if (!$_REQUEST['mid']) {
App::$meta->set('og:title', $channel['channel_name']);
App::$meta->set('og:image', $channel['xchan_photo_l']);
@ -224,7 +222,7 @@ class Channel extends Controller
} else {
App::$meta->set('og:description', sprintf(t('This is the home page of %s.'), $channel['channel_name']));
}
$json = Activity::actorEncode($channel,true,true,false,!$isNomadic);
$json = Activity::actorEncode($channel,true,true,false, $this->legacy);
$json = array_merge(Activity::ap_context(''), $json);
$json['proof'] = (new JcsEddsa2022)->sign($json, $channel);
App::$meta->setjson($json);