diff options
| author | anonymous puppy | 2026-01-21 19:30:17 +0000 |
|---|---|---|
| committer | jade (winter) | 2026-01-21 20:15:35 +0000 |
| commit | adc0ec91a02a5df9768e6b256e6772b48c605f25 (patch) | |
| tree | 8b34fc5fe2325776147c51a36534b36f4284f477 /templates/actor | |
| parent | ed465091554b84c9863e39725ddf56b789d64669 (diff) | |
Fix null actor warning in profile template
Diffstat (limited to 'templates/actor')
| -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> |
