Fix SimplePolicy blocking account updates #692
No reviewers
Labels
No labels
approved, awaiting change
bug
configuration
documentation
duplicate
enhancement
extremely low priority
feature request
Fix it yourself
help wanted
invalid
mastodon_api
needs docs
needs tests
not a bug
planned
pleroma_api
privacy
question
static_fe
triage
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: AkkomaGang/akkoma#692
Loading…
Reference in a new issue
No description provided.
Delete branch "Oneric/akkoma:fix-background_removal"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Sorry for the trouble, turns out there’s an issue with the just merged background_removal MRF addition. On the bright side the fix is very simple.
This fixes an oversight in
e99e2407f3
which added background_removal as a possible SimplePolicy setting.However, it did not add a default value to the base config and as it turns out instance_list doesn’t handle unset options well.
In effect this caused federating instances with SimplePolicy enabled but background_removal not explicitly configured to always trip up for outgoing account updates in check_background_removal (and incoming updates from Sharkey).
For added ""fun"" this error was able to block account updates made e.g. via /api/v1/accounts/update_credentials.
Tests were unaffected since they explicitly override all relevant config options.
Set a default to avoid all this
(note to self: don’t forget next time, baka!)
hehe join the breaking things club
easy to miss, this