mirror of
https://github.com/flarum/core.git
synced 2025-07-28 20:20:34 +02:00
Remove like with and compare with equals (#37)
`_` is special character in mysql so like query was fetching different result for user who's unsername starts with or contains `_`
This commit is contained in:
committed by
Franz Liedke
parent
f21b062b3d
commit
7afdbb1ea9
@@ -62,7 +62,7 @@ class ConfigureMentions
|
||||
*/
|
||||
public static function addUserId($tag)
|
||||
{
|
||||
if ($user = User::where('username', 'like', $tag->getAttribute('username'))->first()) {
|
||||
if ($user = User::where('username', $tag->getAttribute('username'))->first()) {
|
||||
$tag->setAttribute('id', $user->id);
|
||||
$tag->setAttribute('displayname', $user->display_name);
|
||||
|
||||
|
Reference in New Issue
Block a user