Clean up bookmarks after prune_objects #544
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#544
Loading…
Reference in a new issue
No description provided.
Delete branch "ilja/akkoma:clean_up_bookmarks_after_prune_objects"
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?
See https://meta.akkoma.dev/t/unable-to-retrieve-more-than-20-bookmarks/449/7
After pruning objects, it's possible that some bookmarks reference non-existing objects. For that reason, we clean up such bookmarks after running prune_objects. Note that we only need this cleaning when the
--keep-threads
wasn't used, because that option wont delete objects when there are bookmarks.I also refactored some stuff to the setup, because I saw a lot of reused code.
WIP: Move deadline and old_insert_date to setupto Clean up bookmarks after prune_objectsthis looks good, thanks a lot!