Skip to content

Commit

Permalink
fix: broken tag mentions
Browse files Browse the repository at this point in the history
Signed-off-by: Sami Mazouz <sychocouldy@gmail.com>
  • Loading branch information
SychO9 committed Apr 27, 2023
1 parent 337b116 commit cabc3d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extensions/mentions/src/ConfigureMentions.php
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ private function configureTagMentions(Configurator $config)
public static function addTagId(FormatterTag $tag, array $mentions)
{
/** @var Tag|null $model */
$model = $mentions['tags']->where('id', $tag->getAttribute('id'))->first();
$model = $mentions['tags']->where('slug', $tag->getAttribute('slug'))->first();

if ($model) {
$tag->setAttribute('id', (string) $model->id);
Expand Down

0 comments on commit cabc3d7

Please sign in to comment.