Don’t normalize the text of a tag that is displayed, only normalize the content for a tag in the URL
This commit is contained in:
parent
7e626ac4e7
commit
53875f08eb
2 changed files with 5 additions and 1 deletions
|
@ -456,7 +456,7 @@ class Note extends Model
|
|||
function ($matches) {
|
||||
return '<a rel="tag" class="p-category" href="/notes/tagged/'
|
||||
. Tag::normalize($matches[1]) . '">#'
|
||||
. Tag::normalize($matches[1]) . '</a>';
|
||||
. $matches[1] . '</a>';
|
||||
},
|
||||
$text
|
||||
);
|
||||
|
|
|
@ -109,5 +109,9 @@ class NotesTableSeeder extends Seeder
|
|||
$mediaInstagram->type = 'image';
|
||||
$mediaInstagram->save();
|
||||
$noteFromInstagram->media()->save($mediaInstagram);
|
||||
sleep(1);
|
||||
$noteCapitalHashtag = Note::create([
|
||||
'note' => 'A #TwoWord hashtag',
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue