diff options
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/actor/profile.php | 4 |
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> |
