aboutsummaryrefslogtreecommitdiff
path: root/src/components/notification/notification.js
diff options
context:
space:
mode:
authorMaxim Filippov <colixer@gmail.com>2018-12-13 19:57:11 +0300
committerMaxim Filippov <colixer@gmail.com>2018-12-13 19:57:11 +0300
commite4a34cc4d4dcd882e8a546813215dcac95e4ceab (patch)
treeedd39959f1bb84e5958a37ff2d194db597e701b3 /src/components/notification/notification.js
parent70c48a076d7f55c04e858a478d41a663118653d0 (diff)
Use 'userProfileLink' to generate user-profile link
Diffstat (limited to 'src/components/notification/notification.js')
-rw-r--r--src/components/notification/notification.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/components/notification/notification.js b/src/components/notification/notification.js
index c786f2cc..95d094f4 100644
--- a/src/components/notification/notification.js
+++ b/src/components/notification/notification.js
@@ -2,6 +2,7 @@ import Status from '../status/status.vue'
import StillImage from '../still-image/still-image.vue'
import UserCardContent from '../user_card_content/user_card_content.vue'
import { highlightClass, highlightStyle } from '../../services/user_highlighter/user_highlighter.js'
+import generateProfileLink from 'src/services/user_profile_link_generator/user_profile_link_generator'
const Notification = {
data () {
@@ -28,6 +29,9 @@ const Notification = {
const highlight = this.$store.state.config.highlight
const user = this.notification.action.user
return highlightStyle(highlight[user.screen_name])
+ },
+ userProfileLink (user) {
+ return generateProfileLink(user.id, user.screen_name)
}
}
}