Repository navigation
fix: use the comment's actual age for the day count in the crosspost reply - #86
Merged
Merged
Conversation
…reply --process-one skips the Phase 3 waiting period, but the reply still said the comment was written, and the bot waited, PHASE3_WAITING_PERIOD days ago. Co-Authored-By: Toldry <toldry@gmail.com> Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XxZW1s4sP8XVBUkskD7BLk
…ed-days # Conflicts: # CHANGELOG.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Querent · project thread
Before: the reply under a crosspost said the source comment was "written 90 days ago" and that the bot "waited 90 days", taken from
PHASE3_WAITING_PERIOD, even when less time had passed, as with--process-one.After: both use the number of days since the source comment was actually written, in every language (all locales share the one
{timedelta_string}placeholder). 0 and 1 days are not special-cased.How:
reply_to_crosspostcomputestime.time() - source_comment.created_utcand falls back to the waiting period only if the comment has nocreated_utc. Added a test across all locales, a CHANGELOG entry, and updated the phrasings-test docstring and AGENTS.md wording.🤖 Generated with Claude Code
https://claude.ai/code/session_01XxZW1s4sP8XVBUkskD7BLk
Generated by Claude Code