aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authoranonymous puppy2026-01-21 19:30:17 +0000
committerjade (winter)2026-01-21 20:15:35 +0000
commitadc0ec91a02a5df9768e6b256e6772b48c605f25 (patch)
tree8b34fc5fe2325776147c51a36534b36f4284f477
parented465091554b84c9863e39725ddf56b789d64669 (diff)
Fix null actor warning in profile template
-rw-r--r--templates/actor/profile.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/actor/profile.php b/templates/actor/profile.php
index 4e5f66a..0029e8e 100644
--- a/templates/actor/profile.php
+++ b/templates/actor/profile.php
@@ -89,7 +89,7 @@ $actorUser = UserAccount::findByLinkedActor($actor);
<?php endif; ?>
<?php call_template('actor/profile_follow_button', ['actor' => $actor, 'user' => $user]); ?>
</div>
- <?php elseif ($actor->id == $user->actor->id): ?>
+ <?php elseif (isset($user->actor) && $actor->id == $user->actor->id): ?>
<div class="profileActions">
<button class="primary" hx-get="/fragment/profile" hx-target="closest .fullProfile" hx-swap="outerHTML">
<?= __('form.edit') ?>
@@ -97,4 +97,4 @@ $actorUser = UserAccount::findByLinkedActor($actor);
</div>
<?php endif; ?>
-</div> \ No newline at end of file
+</div>