Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review infoConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughReplaces a hard-coded frontend comment URL for spam-report emails with a dynamic URL built from the comment's associated Post object using Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches
🧪 Generate unit tests (beta)
Tip Try Coding Plans. Let us write the prompt for your AI agent so you can ship faster (with fewer bugs). Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Cleanup: Preview Environment RemovedThe preview environment for this PR has been destroyed.
Cleanup triggered by PR close at 2026-03-03T15:35:17Z |
comments/services/spam_detection.py
Outdated
| base_url = "questions" | ||
| if comment.on_post.notebook_id is not None: | ||
| base_url = "notebooks" | ||
|
|
||
| content_frontend_url = build_frontend_url( | ||
| f"/questions/{comment.on_post.id}/#comment-{comment.id}" | ||
| f"/{base_url}/{comment.on_post.id}/#comment-{comment.id}" | ||
| ) |
There was a problem hiding this comment.
You can use utils.frontend.build_post_url instead
Should close #2618
Summary by CodeRabbit