diff options
| author | Maxim Filippov <colixer@gmail.com> | 2018-12-13 19:57:11 +0300 |
|---|---|---|
| committer | Maxim Filippov <colixer@gmail.com> | 2018-12-13 19:57:11 +0300 |
| commit | e4a34cc4d4dcd882e8a546813215dcac95e4ceab (patch) | |
| tree | edd39959f1bb84e5958a37ff2d194db597e701b3 /src/components/user_card_content/user_card_content.js | |
| parent | 70c48a076d7f55c04e858a478d41a663118653d0 (diff) | |
Use 'userProfileLink' to generate user-profile link
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 d22d4ec1..abdac58e 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' ], @@ -40,6 +41,9 @@ export default { const days = Math.ceil((new Date() - new Date(this.user.created_at)) / (60 * 60 * 24 * 1000)) return Math.round(this.user.statuses_count / days) }, + userProfileLink (user) { + return generateProfileLink(user.id, user.screen_name) + }, userHighlightType: { get () { const data = this.$store.state.config.highlight[this.user.screen_name] |
