mirror of
https://github.com/hoernschen/dendrite.git
synced 2025-04-18 01:33:39 +00:00
Merge branch 'master' of https://github.com/matrix-org/dendrite into query-key-backup
This commit is contained in:
commit
559260c35c
3 changed files with 7 additions and 3 deletions
|
@ -156,7 +156,9 @@ func fillInRooms(ctx context.Context, roomIDs []string, rsAPI roomserverAPI.Room
|
||||||
case topicTuple:
|
case topicTuple:
|
||||||
pub.Topic = contentVal
|
pub.Topic = contentVal
|
||||||
case canonicalTuple:
|
case canonicalTuple:
|
||||||
|
if _, _, err := gomatrixserverlib.SplitID('#', contentVal); err == nil {
|
||||||
pub.CanonicalAlias = contentVal
|
pub.CanonicalAlias = contentVal
|
||||||
|
}
|
||||||
case visibilityTuple:
|
case visibilityTuple:
|
||||||
pub.WorldReadable = contentVal == "world_readable"
|
pub.WorldReadable = contentVal == "world_readable"
|
||||||
// need both of these to determine whether guests can join
|
// need both of these to determine whether guests can join
|
||||||
|
|
|
@ -449,7 +449,7 @@ func Setup(
|
||||||
httputil.MakeExternalAPI("federation_public_rooms", func(req *http.Request) util.JSONResponse {
|
httputil.MakeExternalAPI("federation_public_rooms", func(req *http.Request) util.JSONResponse {
|
||||||
return GetPostPublicRooms(req, rsAPI)
|
return GetPostPublicRooms(req, rsAPI)
|
||||||
}),
|
}),
|
||||||
).Methods(http.MethodGet)
|
).Methods(http.MethodGet, http.MethodPost)
|
||||||
|
|
||||||
v1fedmux.Handle("/user/keys/claim", httputil.MakeFedAPI(
|
v1fedmux.Handle("/user/keys/claim", httputil.MakeFedAPI(
|
||||||
"federation_keys_claim", cfg.Matrix.ServerName, keys, wakeup,
|
"federation_keys_claim", cfg.Matrix.ServerName, keys, wakeup,
|
||||||
|
|
|
@ -215,7 +215,9 @@ func PopulatePublicRooms(ctx context.Context, roomIDs []string, rsAPI Roomserver
|
||||||
case topicTuple:
|
case topicTuple:
|
||||||
pub.Topic = contentVal
|
pub.Topic = contentVal
|
||||||
case canonicalTuple:
|
case canonicalTuple:
|
||||||
|
if _, _, err := gomatrixserverlib.SplitID('#', contentVal); err == nil {
|
||||||
pub.CanonicalAlias = contentVal
|
pub.CanonicalAlias = contentVal
|
||||||
|
}
|
||||||
case visibilityTuple:
|
case visibilityTuple:
|
||||||
pub.WorldReadable = contentVal == "world_readable"
|
pub.WorldReadable = contentVal == "world_readable"
|
||||||
// need both of these to determine whether guests can join
|
// need both of these to determine whether guests can join
|
||||||
|
|
Loading…
Reference in a new issue