Repository navigation
Conversation
geodro
force-pushed
the
feat/hashtag-topics
branch
from
October 15, 2026 12:15
04153f3 to
cacd33d
Compare
nunomaduro
marked this pull request as draft
October 15, 2026 12:20
Contributor
|
We won't do hashtags |
Closed
Closed
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.
A post now lands in a topic just by mentioning it: writing #Laravel attaches the post to the laravel topic, creating the topic the first time anyone uses it. The hashtag turns into a link, and /topics/laravel lists every post in that topic newest first with the same infinite scroll as the timelines, behind login like the rest of the app.
Tags are matched case-insensitively, so #Laravel and #laravel are one topic. A tag needs at least one letter and must not be glued to a word, so an issue number like #123 or the # in C# stays plain text, and anything over 50 characters is ignored. CreatePost does the parsing inside the same transaction as the post, and the frontend renders links with the same pattern, so every link points at a topic that exists. Deleting a post drops it from its topics through the pivot's cascade; a topic left empty stays around.
Covered by unit and feature tests for the action, both models and TopicController, with coverage still at 100%, plus a Pest browser test that posts a hashtag, clicks it and lands on the topic page.