aboutsummaryrefslogtreecommitdiffhomepage
path: root/templates/actor
diff options
context:
space:
mode:
Diffstat (limited to 'templates/actor')
-rw-r--r--templates/actor/profile.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/templates/actor/profile.php b/templates/actor/profile.php
index 3165586..3e1a11e 100644
--- a/templates/actor/profile.php
+++ b/templates/actor/profile.php
@@ -53,6 +53,16 @@ $actorUser = UserAccount::findByLinkedActor($actor);
<?php if ($user != null && $user->actor != $actor): ?>
<li><?php call_template('actor/profile_block_button', ['user' => $user, 'actor' => $actor]) ?></li>
<?php endif; ?>
+ <?php if (!$actor->isLocal): ?>
+ <li>
+ <a href="<?= $actor->getLocalUiHref() . '?forceRefetch=1' ?>"
+ hx-get="/fragment/actor/<?= $actor->id ?>?forceRefetch=1" hx-target="closest .fullProfile"
+ hx-swap="outerHTML">
+ <span class="material-symbols sync"></span>
+ <span><?= __('user.profile.forceRefetch') ?></span>
+ </a>
+ </li>
+ <?php endif; ?>
<?php }); ?>
</div>