mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-19 16:15:13 +00:00
cleanup and refactor
This commit is contained in:
parent
b579e0a3fe
commit
55a26cd8c3
1 changed files with 1 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue