diff options
| author | 2025-04-07 13:52:24 +0200 | |
|---|---|---|
| committer | 2025-04-07 12:52:24 +0100 | |
| commit | 6f24205a26bde03e73055fd7af369352103c390f (patch) | |
| tree | a83d03a77267ac5452883868d4aca19b0c2114b6 /internal/ap/properties.go | |
| parent | [chore]: Bump github.com/minio/minio-go/v7 from 7.0.85 to 7.0.89 (#3977) (diff) | |
| download | gotosocial-6f24205a26bde03e73055fd7af369352103c390f.tar.xz | |
[bugfix] Don't assume `"manuallyApprovesFollowers": true` if not set (#3978)
* [bugfix] Don't assume `"manuallyApprovesFollowers": true` if not set
* whoops, tests
Diffstat (limited to 'internal/ap/properties.go')
| -rw-r--r-- | internal/ap/properties.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/ap/properties.go b/internal/ap/properties.go index 844373510..e1dea22f0 100644 --- a/internal/ap/properties.go +++ b/internal/ap/properties.go @@ -520,11 +520,11 @@ func SetDiscoverable(with WithDiscoverable, discoverable bool) { // GetManuallyApprovesFollowers returns the boolean contained in the ManuallyApprovesFollowers property of 'with'. // -// Returns default 'true' if property unusable or not set. +// Returns default 'false' if property unusable or not set. func GetManuallyApprovesFollowers(with WithManuallyApprovesFollowers) bool { mafProp := with.GetActivityStreamsManuallyApprovesFollowers() if mafProp == nil || !mafProp.IsXMLSchemaBoolean() { - return true + return false } return mafProp.Get() } |
