mirror of
https://github.com/hoernschen/dendrite.git
synced 2025-08-02 22:22:46 +00:00
Federation fixes for virtual hosting
This commit is contained in:
parent
f4ee397734
commit
6650712a1c
73 changed files with 736 additions and 420 deletions
|
@ -82,7 +82,8 @@ func Backfill(
|
|||
BackwardsExtremities: map[string][]string{
|
||||
"": eIDs,
|
||||
},
|
||||
ServerName: request.Origin(),
|
||||
ServerName: request.Origin(),
|
||||
VirtualHost: request.Destination(),
|
||||
}
|
||||
if req.Limit, err = strconv.Atoi(limit); err != nil {
|
||||
util.GetLogger(httpReq.Context()).WithError(err).Error("strconv.Atoi failed")
|
||||
|
@ -123,7 +124,7 @@ func Backfill(
|
|||
}
|
||||
|
||||
txn := gomatrixserverlib.Transaction{
|
||||
Origin: cfg.Matrix.ServerName,
|
||||
Origin: request.Destination(),
|
||||
PDUs: eventJSONs,
|
||||
OriginServerTS: gomatrixserverlib.AsTimestamp(time.Now()),
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue