You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Posting streak: let me skip weekends (or set a weekly goal)
#2346
I’m running self-hosted Postiz v2.25.3 and I like the streak counter. The problem is that it only knows one rule: publish something every 24 hours or it resets.
I looked at apps/orchestrator/src/workflows/streak.workflow.ts. The window is a hardcoded const DAY = 86400000. After each publish, the workflow sleeps until that post is a day old, and if nothing newer has gone out it ends the streak. There’s no setting, env var, or per-organization option that changes it. The only streak control I found is sendStreakEmails, which mutes the emails but doesn’t change when the counter resets.
I post on weekdays, five times a week. As it stands, the streak breaks every Saturday, so it can never get past about five days. It rewards posting seven days a week or nothing, which isn’t how most people run a content schedule.
Either of these would fix it for me:
Skip weekends. An org-level option that doesn’t count Saturday and Sunday. A Friday post would keep the streak alive through Monday.
A weekly goal. Let me set a number of posts per week, and count consecutive weeks that hit it.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
I’m running self-hosted Postiz v2.25.3 and I like the streak counter. The problem is that it only knows one rule: publish something every 24 hours or it resets.
I looked at apps/orchestrator/src/workflows/streak.workflow.ts. The window is a hardcoded const DAY = 86400000. After each publish, the workflow sleeps until that post is a day old, and if nothing newer has gone out it ends the streak. There’s no setting, env var, or per-organization option that changes it. The only streak control I found is sendStreakEmails, which mutes the emails but doesn’t change when the counter resets.
I post on weekdays, five times a week. As it stands, the streak breaks every Saturday, so it can never get past about five days. It rewards posting seven days a week or nothing, which isn’t how most people run a content schedule.
Either of these would fix it for me:
All reactions