Skip to content

Commit

Permalink
Merge pull request #7614 from live627/fix/topic-584161
Browse files Browse the repository at this point in the history
fix: Don't confuse mentions and hyperlinks
  • Loading branch information
live627 authored Nov 14, 2022
2 parents 7ce43ca + 9e16af1 commit 79970eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Themes/default/scripts/jquery.sceditor.smf.js
Original file line number Diff line number Diff line change
Expand Up @@ -943,7 +943,7 @@ sceditor.formats.bbcode.set(
if (typeof attrs.defaultattr === "undefined" || attrs.defaultattr.length === 0)
attrs.defaultattr = content;

return '<a href="' + smf_scripturl +'?action=profile;u='+ attrs.defaultattr + '" class="mention" data-mention="'+ attrs.defaultattr + '">@'+ content.replace('@','') +'</a>';
return '<a href="' + smf_scripturl +'?action=profile;u='+ attrs.defaultattr + '" class="mention" data-type="mention" data-mention="'+ attrs.defaultattr + '">@'+ content.replace('@', '') +'</a>';
}
}
);
Expand Down

0 comments on commit 79970eb

Please sign in to comment.