mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2026-01-06 00:53:16 -06:00
fix search logic to match new mention matching logic
Signed-off-by: kim <grufwub@gmail.com>
This commit is contained in:
parent
730366ddf1
commit
aaf20de797
2 changed files with 16 additions and 24 deletions
|
|
@ -77,8 +77,3 @@ func ExtractMentionParts(mention string) (username, domain string, err error) {
|
|||
return "", "", fmt.Errorf("couldn't match mention %s", mention)
|
||||
}
|
||||
}
|
||||
|
||||
// IsMention returns true if the passed string looks like @whatever@example.org
|
||||
func IsMention(mention string) bool {
|
||||
return regexes.MentionName.MatchString(strings.ToLower(mention))
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue