mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2025-09-11 09:33:02 +02:00
remove several services.globals config wrappers
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
parent
d60920c728
commit
d3b65af616
12 changed files with 34 additions and 84 deletions
|
@ -52,7 +52,7 @@ pub(crate) async fn set_displayname_route(
|
|||
update_displayname(&services, &body.user_id, body.displayname.clone(), &all_joined_rooms)
|
||||
.await;
|
||||
|
||||
if services.globals.allow_local_presence() {
|
||||
if services.config.allow_local_presence {
|
||||
// Presence update
|
||||
services
|
||||
.presence
|
||||
|
@ -147,7 +147,7 @@ pub(crate) async fn set_avatar_url_route(
|
|||
)
|
||||
.await;
|
||||
|
||||
if services.globals.allow_local_presence() {
|
||||
if services.config.allow_local_presence {
|
||||
// Presence update
|
||||
services
|
||||
.presence
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue