Revert obsolete change

Signed-off-by: Antoine Mazeas <antoine@karthanis.net>
This commit is contained in:
Antoine Mazeas 2020-01-07 19:36:17 +01:00
parent 9d587e32f2
commit 3b603a2180

View File

@ -65,8 +65,7 @@ class MaubotServer:
def get_instance_subapp(self, instance_id: str) -> Tuple[PluginWebApp, str]:
subpath = self.config["server.plugin_base_path"] + instance_id
path_prefix = self.config["server.public_url_path_prefix"].rstrip("/")
url = self.config["server.public_url"] + path_prefix + subpath
url = self.config["server.public_url"] + subpath
try:
return self.plugin_routes[subpath], url
except KeyError: