Fix wrong server name reference
This commit is contained in:
parent
a32982cb7f
commit
196839ebf4
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue