forked from AkkomaGang/akkoma-fe
Remove leading @ in user search.
This commit is contained in:
parent
55c4818084
commit
a5d05bcb10
1 changed files with 1 additions and 0 deletions
|
@ -7,6 +7,7 @@ const UserFinder = {
|
||||||
}),
|
}),
|
||||||
methods: {
|
methods: {
|
||||||
findUser (username) {
|
findUser (username) {
|
||||||
|
username = username[0] === '@' ? username.slice(1) : username
|
||||||
this.loading = true
|
this.loading = true
|
||||||
this.$store.state.api.backendInteractor.externalProfile(username)
|
this.$store.state.api.backendInteractor.externalProfile(username)
|
||||||
.then((user) => {
|
.then((user) => {
|
||||||
|
|
Loading…
Reference in a new issue