Support @username mentions in blog entry content #31
Labels
No labels
automated
code-quality
component: admin dashboard
component: backend
component: billing
component: content management
component: faqs
component: game genres
component: game lists
component: game reviews
component: game search
component: games
component: internal notifications
component: platforms
component: security
component: tests
component: user api
component: user badges
component: user blogs
component: user consoles
component: user favorites
component: user friends
component: user notifications
component: user profiles
component: user site notifications
component: user wishlists
component: web design
dependencies
php
priority
high
priority
low
priority
medium
security-hotspot
source: codex
source: sonarqube
status
awaiting feedback
status
backlog
status
done
status
in progress
status
in queue
status
in review
status
needs codex review
status
needs investigation
status
wontfix
type: bug
type: documentation
type: feature
type: improvement
type: regression
type: task
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
MyVideoGameList/myvideogamelist.com#31
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Blog entries and blog entry comments should support
@usernamementions so authors and commenters can reference other MyVideoGameList users directly. Valid mentions should render as profile links, and mentioned users can opt in to email notifications separately for blog entries and blog entry comments.In the current Laravel checkout, blog entry persistence, public blog pages, Markdown previews, and blog comments are rebuilt through
BlogEntryController,BlogCommentController,BlogEntry, andBlogComment. Profile routes already provide canonical links for mentioned users, and the existing notification preference row supports opt-in email notification behavior.Scope
Acceptance Criteria
@usernamementions as links to that user's profile.@usernamementions as links to that user's profile.Test Coverage Required
vendor/bin/pint --dirty --format agentbefore closing the issue.Progress Checklist
blog_entry_publishedOriginally posted by Vilkathewolf
Does this also mean that the person will be notified that they've been mentioned?
Also instead of just blog entries, maybe comments too?
Love the idea though, I'm for it.
@VilkaTheWolf This issue only covers using the @ mention in a blog entry. Notifications and using @ mentions in blog entry comments are both good ideas too. I'd recommend creating a new issue for each one if you wanna see either in future versions of the site! 👍
Allow @ username Mentioning in Blog Entriesto Support @username mentions in blog entry contentImplemented and pushed in
061f16d(Add blog mention notifications).Notes for review/maintenance:
@usernamementions link to canonical profile routes; unknown, banned, user-deleted, and soft-deleted users remain plain text.Verification run:
php artisan test --compact tests/Unit/BlogMentionRendererTest.phpphp artisan test --compact tests/Feature/BlogTest.phpphp artisan test --compact tests/Feature/Settings/ProfileUpdateTest.phpphp artisan test --compact tests/Feature/Auth/RegistrationTest.phpphp artisan test --compact tests/Feature/SyncProdUserNotificationSettingsCommandTest.phpvendor/bin/pint --dirty --format agentgit diff --check