diff options
Diffstat (limited to 'templates/actor_profile.php')
| -rw-r--r-- | templates/actor_profile.php | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/templates/actor_profile.php b/templates/actor_profile.php index c480d21..0dc3ccd 100644 --- a/templates/actor_profile.php +++ b/templates/actor_profile.php @@ -5,7 +5,13 @@ $user = UserAccount::findByCurrentSession(); ?> <div class="fullProfile"> <div class="basicInfo"> - <?php call_template('actor_avatar', ['actor' => $actor]); ?> + <?php if ($addLink ?? false): ?> + <a href="/@/<?= $actor->getFullHandle() ?>"> + <?php endif; ?> + <?php call_template('actor_avatar', ['actor' => $actor]); ?> + <?php if ($addLink ?? false): ?> + </a> + <?php endif; ?> <div> <div class="displayName"><?= $actor->displayName ?></div> <div class="handle">@<?= $actor->getFullHandle() ?></div> @@ -26,6 +32,8 @@ $user = UserAccount::findByCurrentSession(); <?php if (isset($user) && $actor->id != $user->actor->id): ?> <div class="followInfo"> + <?php if ($actor->followsPending($user->actor)) + call_template('actor_profile_pending_follow', ['subject' => $actor, 'object' => $user->actor]); ?> <?php if ($actor->follows($user->actor)): ?> <?= __('user.profile.followsYou') ?> <?php endif; ?> |
