mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-16 05:36:50 +00:00
dedup servers in get_alias_helper
Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
1 parent
da539efb98
commit
edd74efbf2
1 file changed
+4
@@ -116,6 +116,8 @@ pub(crate) async fn get_alias_helper(
|
|||||||
servers.insert(0, services().globals.server_name().to_owned());
|
servers.insert(0, services().globals.server_name().to_owned());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
servers.dedup();
|
||||||
|
|
||||||
return Ok(get_alias::v3::Response::new(room_id, servers));
|
return Ok(get_alias::v3::Response::new(room_id, servers));
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -199,5 +201,7 @@ pub(crate) async fn get_alias_helper(
|
|||||||
servers.insert(0, services().globals.server_name().to_owned());
|
servers.insert(0, services().globals.server_name().to_owned());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
servers.dedup();
|
||||||
|
|
||||||
Ok(get_alias::v3::Response::new(room_id, servers))
|
Ok(get_alias::v3::Response::new(room_id, servers))
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user