aboutsummaryrefslogtreecommitdiffhomepage
path: root/routes/actor_profile_fragment.php
diff options
context:
space:
mode:
authorwinter2025-01-20 17:43:17 +0000
committerwinter2025-01-20 17:43:17 +0000
commit6b78446c1d5b76438d40bbe68aa0397de533e61a (patch)
treef2e06477b74e2b380b1922179e3cb16ca1420481 /routes/actor_profile_fragment.php
parent55433eeca50ff840cb0b660f8f9de44b2bc6825f (diff)
various avatar tweaks and profile above note form
Diffstat (limited to 'routes/actor_profile_fragment.php')
-rw-r--r--routes/actor_profile_fragment.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/routes/actor_profile_fragment.php b/routes/actor_profile_fragment.php
index 0a07924..0a2a881 100644
--- a/routes/actor_profile_fragment.php
+++ b/routes/actor_profile_fragment.php
@@ -70,4 +70,11 @@ Router::getInstance()->mount('/fragment/profile', function (array $args) {
} else {
render_template('actor_profile_editable', ['actor' => $actor]);
}
+});
+
+Router::getInstance()->mount('/fragment/profile/resetAvatar', function (array $args) {
+ $user = UserAccount::requireByCurrentSession();
+ $user->actor->avatar = null;
+ $user->actor->save();
+ render_template('actor_profile_reset_avatar', ['reset' => true]);
}); \ No newline at end of file