diff options
| author | winter | 2025-01-26 17:23:11 +0000 |
|---|---|---|
| committer | winter | 2025-01-26 17:23:11 +0000 |
| commit | df5ead7bd4adac405811b91fed1e5f0b3775206b (patch) | |
| tree | 20402ccab2fba3af35a83bd034f13876aabd4f5b /templates/actor_profile_page.php | |
| parent | e8106abb8006f5e60e1f2d42621c64ae3d78e372 (diff) | |
add link preview metadata
Diffstat (limited to 'templates/actor_profile_page.php')
| -rw-r--r-- | templates/actor_profile_page.php | 7 |
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(); |
