mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-29 03:32:25 -05:00
[bugfix] Fix nil ptr in DifferentFrom func (#4477)
Closes https://codeberg.org/superseriousbusiness/gotosocial/issues/4476 Reviewed-on: https://codeberg.org/superseriousbusiness/gotosocial/pulls/4477 Co-authored-by: tobi <tobi.smethurst@protonmail.com> Co-committed-by: tobi <tobi.smethurst@protonmail.com>
This commit is contained in:
parent
5b95636993
commit
03fc6eaf39
1 changed files with 6 additions and 0 deletions
|
|
@ -244,6 +244,12 @@ func (pr1 *PolicyRules) DifferentFrom(pr2 *PolicyRules) bool {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// If they're both nil we don't
|
||||||
|
// need to check anything else.
|
||||||
|
if pr1 == nil && pr2 == nil {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
// Check if AutomaticApproval
|
// Check if AutomaticApproval
|
||||||
// differs between the two.
|
// differs between the two.
|
||||||
if slices.Compare(
|
if slices.Compare(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue