diff options
| author | winter | 2025-03-16 00:53:52 +0000 |
|---|---|---|
| committer | winter | 2025-03-16 00:53:52 +0000 |
| commit | 145b5db9474e32ca3430fe35eaa7498d7f26ff95 (patch) | |
| tree | df1da516a05cd382e19a815d4e7e6bee314e3007 /templates/actor/profile.php | |
| parent | a0a86c3a98a6af158ecd2f1923feb752c82907db (diff) | |
implement poking and such
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"> |
