diff options
Diffstat (limited to 'templates/actor_profile.php')
| -rw-r--r-- | templates/actor_profile.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/templates/actor_profile.php b/templates/actor_profile.php index 1e37f28..4692a53 100644 --- a/templates/actor_profile.php +++ b/templates/actor_profile.php @@ -27,6 +27,14 @@ $user = UserAccount::findByCurrentSession(); // i don't know why but `global $user` just straight up doesnt work? $user = UserAccount::findByCurrentSession(); ?> + <?php if (!$actor->isLocal && isset($actor->homepage)): ?> + <li> + <a href="<?= $actor->homepage ?>" target="_blank"> + <span class="material-symbols open-in-new"></span> + <span><?= __('user.profile.openRemote') ?></span> + </a> + </li> + <?php endif; ?> <?php if ($user != null && $user->actor != $actor): ?> <li><?php call_template('actor_profile_block_button', ['user' => $user, 'actor' => $actor]) ?></li> <?php endif; ?> |
