aboutsummaryrefslogtreecommitdiffhomepage
path: root/templates/actor/profile.php
diff options
context:
space:
mode:
authorwinter2025-03-31 22:01:50 +0100
committerwinter2025-03-31 22:01:50 +0100
commitdc1deda3a02e3ebc31d4ed3a256580469cf83c0e (patch)
tree12bfd47830aa06e09d24ce5276bff7cfac21ef94 /templates/actor/profile.php
parenta9f0003e809d46093e783d2079be7a952b5f5e0d (diff)
add button to reload actors from remote instance
Diffstat (limited to 'templates/actor/profile.php')
-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>