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 be27c86..1e8e51c 100644 --- a/templates/actor/profile.php +++ b/templates/actor/profile.php @@ -1,4 +1,6 @@ <?php +/** @var \Digitigrade\Model\Actor $actor */ + use Digitigrade\Model\UserAccount; use Digitigrade\UserSettings; @@ -72,6 +74,12 @@ $actorUser = UserAccount::findByLinkedActor($actor); <?php endif; ?> <?php call_template('actor/profile_follow_button', ['actor' => $actor, 'user' => $user]); ?> </div> + <?php if ($actor->isPokeable()): ?> + <details> + <summary><?= __('user.profile.poke') ?></summary> + <?php call_template('actor/profile_poke_form', ['actor' => $actor]); ?> + </details> + <?php endif; ?> <?php elseif ($actor->id == $user->actor->id): ?> <div class="profileActions"> <button class="primary" hx-get="/fragment/profile" hx-target="closest .fullProfile" hx-swap="outerHTML"> |
