aboutsummaryrefslogtreecommitdiffhomepage
path: root/templates/actor_profile_page.php
diff options
context:
space:
mode:
Diffstat (limited to 'templates/actor_profile_page.php')
-rw-r--r--templates/actor_profile_page.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/templates/actor_profile_page.php b/templates/actor_profile_page.php
index 3b6eb84..dbeb86a 100644
--- a/templates/actor_profile_page.php
+++ b/templates/actor_profile_page.php
@@ -5,7 +5,12 @@ use Digitigrade\Model\UserAccount;
call_template('skeleton', [
'pageTitle' => "$actor->displayName - @" . $actor->getFullHandle(),
- 'renderTitleHeading' => false
+ 'renderTitleHeading' => false,
+ 'ogTitle' => $actor->displayName,
+ 'ogDesc' => $actor->bio,
+ 'ogImage' => $actor->avatar ?? path_to_uri('/static/default-avatar.png'),
+ 'ogType' => 'profile',
+ 'ogHandle' => '@' . $actor->getFullHandle(true)
], function () {
global $actor;
$user = UserAccount::findByCurrentSession();