mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-15 13:16:56 +00:00
add: clear online status on server boot
This commit is contained in:
1 parent
8451ea3bc3
commit
b71201cf19
2 files changed
+43
No files matched your search
@@ -123,6 +123,11 @@ impl Services {
|
||||
.start()
|
||||
.await?;
|
||||
|
||||
// clear online statuses
|
||||
if self.server.config.allow_local_presence {
|
||||
_ = self.presence.unset_all_presence().await;
|
||||
}
|
||||
|
||||
// set the server user as online
|
||||
if self.server.config.allow_local_presence && !self.db.is_read_only() {
|
||||
_ = self
|
||||
|
||||
Reference in new issue
Block a user