Merge branch 'fix/user-finder-leading-@' into 'develop'

Remove leading @ in user search.

Closes pleroma#71

See merge request pleroma/pleroma-fe!160
This commit is contained in:
Shpuld Shpludson 2017-11-14 15:21:35 +00:00
commit ff63be4afd
1 changed files with 1 additions and 0 deletions

View File

@ -7,6 +7,7 @@ const UserFinder = {
}),
methods: {
findUser (username) {
username = username[0] === '@' ? username.slice(1) : username
this.loading = true
this.$store.state.api.backendInteractor.externalProfile(username)
.then((user) => {