Merge branch 'fix/warnings-in-user-profile' into 'develop'
#461 Fix warnings about user-profile Closes #461 See merge request pleroma/pleroma-fe!708
This commit is contained in:
commit
e329a362e0
|
@ -1,7 +1,7 @@
|
|||
import { includes } from 'lodash'
|
||||
|
||||
const generateProfileLink = (id, screenName, restrictedNicknames) => {
|
||||
const complicated = (isExternal(screenName) || includes(restrictedNicknames, screenName))
|
||||
const complicated = !screenName || (isExternal(screenName) || includes(restrictedNicknames, screenName))
|
||||
return {
|
||||
name: (complicated ? 'external-user-profile' : 'user-profile'),
|
||||
params: (complicated ? { id } : { name: screenName })
|
||||
|
|
Loading…
Reference in New Issue