Remove hidden default of 5 from max_reblog #57
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/issue-56-max-reblog-no-default"
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?
Previously
max_rebloghad a hardcoded default of5, causing zhongli to silently stop after 5 posts even whenrun_continuously = truewas set. The field had no documentation and the default was invisible to users who didn't know to look for it.Changes:
max_reblog: int = 5→max_reblog: int | None = None— no limit when unsetConfigurationgainsomit_defaults=TruesoNonefields (and other defaults) are cleanly omitted from the written TOML rather than causing a serialization errorcreate_default_configno longer hard-codesmax_reblog=5max_reblogisNonewhen not set; new tests for_should_stop_boostingwithNone, at-limit, and below-limit casesBehaviour after this fix:
max_reblog(most users) → runs indefinitelymax_reblog = N→ stops after N posts, regardless ofrun_continuously--max-posts Nstill takes precedence over the config fieldCloses #56
Manually merged in
f934790f9ePull request closed