diff options
| author | winter | 2025-01-16 20:21:42 +0000 |
|---|---|---|
| committer | winter | 2025-01-16 20:21:42 +0000 |
| commit | b1d6fbc4d740324d96d7fe2677fb15b9b59d20ea (patch) | |
| tree | ae2c996cc6a42b3a42437a7ec8812cd184644817 /templates/actor_profile.php | |
| parent | 8de5608976dc8a73a400267601acb4c8e127de5a (diff) | |
follow requests
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; ?> |
