mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2025-08-03 17:34:11 -04:00
Fix Synapse git info missing in version strings (#12973)
This commit is contained in:
parent
a7e506ddee
commit
f30bcbd84a
15 changed files with 36 additions and 38 deletions
|
@ -20,8 +20,6 @@ import platform
|
|||
from http import HTTPStatus
|
||||
from typing import TYPE_CHECKING, Optional, Tuple
|
||||
|
||||
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,6 +86,7 @@ from synapse.rest.admin.users import (
|
|||
WhoisRestServlet,
|
||||
)
|
||||
from synapse.types import JsonDict, RoomStreamToken
|
||||
from synapse.util import SYNAPSE_VERSION
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from synapse.server import HomeServer
|
||||
|
@ -100,7 +99,7 @@ class VersionServlet(RestServlet):
|
|||
|
||||
def __init__(self, hs: "HomeServer"):
|
||||
self.res = {
|
||||
"server_version": get_distribution_version_string("matrix-synapse"),
|
||||
"server_version": SYNAPSE_VERSION,
|
||||
"python_version": platform.python_version(),
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue