Fix wrong server name reference

This commit is contained in:
Neil Alexander 2022-11-08 09:24:08 +00:00
parent a32982cb7f
commit 196839ebf4
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -206,7 +206,7 @@ func (d *Database) QueryPushRules(
// If we didn't find any default push rules then we should just generate some
// fresh ones.
if len(data) == 0 {
pushRuleSets := pushrules.DefaultAccountRuleSets(localpart, d.ServerName)
pushRuleSets := pushrules.DefaultAccountRuleSets(localpart, serverName)
prbs, err := json.Marshal(pushRuleSets)
if err != nil {
return nil, fmt.Errorf("failed to marshal default push rules: %w", err)