mirror of
https://github.com/prosolis/gogobee.git
synced 2026-09-14 10:51:09 +00:00
Fix scheduled posts only broadcasting to first room
All scheduled post dedup keys (wotd, holidays, gaming, anime, movies, concerts, birthdays) were global — after posting to the first room, the job was marked complete and the second room was skipped. Fixed by including the room ID in each dedup key so posts go to all broadcast rooms. Birthday XP grants and DMs remain once-per-user-per-year. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
c1cca5ae12
commit
2c191ec464
@@ -91,7 +91,7 @@ func (p *GamingPlugin) PostReleases(roomID id.RoomID) error {
|
||||
// Check if already posted this week
|
||||
now := time.Now().UTC()
|
||||
year, week := now.ISOWeek()
|
||||
weekKey := fmt.Sprintf("%d-W%02d", year, week)
|
||||
weekKey := fmt.Sprintf("%d-W%02d:%s", year, week, roomID)
|
||||
if db.JobCompleted("releases", weekKey) {
|
||||
slog.Info("gaming: already posted releases this week", "week", weekKey)
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user