diff options
| author | lambda <pleromagit@rogerbraun.net> | 2018-12-18 15:26:00 +0000 |
|---|---|---|
| committer | lambda <pleromagit@rogerbraun.net> | 2018-12-18 15:26:00 +0000 |
| commit | 2f28bf95fdce6a215961fe264c236c111e4a1e66 (patch) | |
| tree | 9e91911158deba707b538cbd06b03d51d46344af /src/components/user_card_content/user_card_content.js | |
| parent | c1ff17ebb0a96d715f8badd0061f78420154a498 (diff) | |
| parent | 63ad08050ef54d2770260989de4b4b7b41c451ef (diff) | |
Merge branch 'feature/new-user-routes' into 'develop'
Make domain.com/username routes work
Closes pleroma#395
See merge request pleroma/pleroma-fe!392
Diffstat (limited to 'src/components/user_card_content/user_card_content.js')
| -rw-r--r-- | src/components/user_card_content/user_card_content.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/components/user_card_content/user_card_content.js b/src/components/user_card_content/user_card_content.js index 206dba88..75185053 100644 --- a/src/components/user_card_content/user_card_content.js +++ b/src/components/user_card_content/user_card_content.js @@ -1,5 +1,6 @@ import StillImage from '../still-image/still-image.vue' import { hex2rgb } from '../../services/color_convert/color_convert.js' +import generateProfileLink from 'src/services/user_profile_link_generator/user_profile_link_generator' export default { props: [ 'user', 'switcher', 'selected', 'hideBio', 'activatePanel' ], @@ -177,6 +178,9 @@ export default { if (target.tagName === 'A') { window.open(target.href, '_blank') } + }, + userProfileLink (user) { + return generateProfileLink(user.id, user.screen_name) } } } |
