Conversation
There was a problem hiding this comment.
Pull request overview
Updates the blog’s HTML templates to improve comment moderation and reduce friction for admins when leaving comments.
Changes:
- Adds an Email column to the “Recent Comments” table on the admin dashboard.
- Pre-fills the comment “Name” field with the
site_titlevalue when an admin is viewing a post.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| templates/post.html | Auto-fills the comment name input for admins using the configured site title. |
| templates/admin_dashboard.html | Displays commenter email addresses in the recent comments table. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
AdminDashboard, AdminPosts, AdminNewPost, AdminSettings, and the Admin root handler were all missing IsAdmin checks, allowing non-admin users to access these pages. Add the same guard used by AdminPages, AdminEditPage, AdminPostTypes, and AdminEditPostType. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.
Summary
site_titlesetting value when the admin is logged inIsAdminauth guards to 5 admin page handlers (Admin,AdminDashboard,AdminPosts,AdminNewPost,AdminSettings) that were accessible to any logged-in user. Matches the pattern already used byAdminPages,AdminEditPage,AdminPostTypes, andAdminEditPostType.Closes #508
Closes #509
Test plan
🤖 Generated with Claude Code