Skip to content
Snippets Groups Projects
Commit e329a362 authored by Shpuld Shpludson's avatar Shpuld Shpludson
Browse files

Merge branch 'fix/warnings-in-user-profile' into 'develop'

#461 Fix warnings about user-profile

Closes #461

See merge request pleroma/pleroma-fe!708
parents 25370083 e6f9b151
No related branches found
No related tags found
2 merge requests!1028`master` refresh with `develop`,!708#461 Fix warnings about user-profile
Pipeline #9661 passed
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 })
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment