aboutsummaryrefslogtreecommitdiffhomepage
path: root/templates/actor_profile_page.php
diff options
context:
space:
mode:
authorwinter2025-01-26 17:23:11 +0000
committerwinter2025-01-26 17:23:11 +0000
commitdf5ead7bd4adac405811b91fed1e5f0b3775206b (patch)
tree20402ccab2fba3af35a83bd034f13876aabd4f5b /templates/actor_profile_page.php
parente8106abb8006f5e60e1f2d42621c64ae3d78e372 (diff)
add link preview metadata
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();