diff options
author | David Robertson <davidr@element.io> | 2022-02-14 13:12:22 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-14 13:12:22 +0000 |
commit | 4ae956c8bb3d0f9a352934238b4d2a9c48307efb (patch) | |
tree | d568632d9adfd7b240aa745ebda824f070bd76ea /synapse/rest | |
parent | Notify users, rather than rooms, of device list updates (#11905) (diff) | |
download | synapse-4ae956c8bb3d0f9a352934238b4d2a9c48307efb.tar.xz |
Use version string helper from matrix-common (#11979)
* Require latest matrix-common * Use the common function
Diffstat (limited to 'synapse/rest')
-rw-r--r-- | synapse/rest/admin/__init__.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/synapse/rest/admin/__init__.py b/synapse/rest/admin/__init__.py index 9be9e33c8e..ba0d989d81 100644 --- a/synapse/rest/admin/__init__.py +++ b/synapse/rest/admin/__init__.py @@ -20,7 +20,8 @@ import platform from http import HTTPStatus from typing import TYPE_CHECKING, Optional, Tuple -import synapse +from matrix_common.versionstring import get_distribution_version_string + from synapse.api.errors import Codes, NotFoundError, SynapseError from synapse.http.server import HttpServer, JsonResource from synapse.http.servlet import RestServlet, parse_json_object_from_request @@ -88,7 +89,6 @@ from synapse.rest.admin.users import ( WhoisRestServlet, ) from synapse.types import JsonDict, RoomStreamToken -from synapse.util.versionstring import get_version_string if TYPE_CHECKING: from synapse.server import HomeServer @@ -101,7 +101,7 @@ class VersionServlet(RestServlet): def __init__(self, hs: "HomeServer"): self.res = { - "server_version": get_version_string(synapse), + "server_version": get_distribution_version_string("matrix-synapse"), "python_version": platform.python_version(), } |