summaryrefslogtreecommitdiff
path: root/src/client/app/desktop/views/components/notifications.vue
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-04-09 19:18:15 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-04-09 19:18:15 +0900
commit2560d3d1c18b474700e8f1ed76da0d71bd332b07 (patch)
treeca96851e517ae18c1071e6378ecd936cbfca9989 /src/client/app/desktop/views/components/notifications.vue
parentoops (diff)
downloadmisskey-2560d3d1c18b474700e8f1ed76da0d71bd332b07.tar.gz
misskey-2560d3d1c18b474700e8f1ed76da0d71bd332b07.tar.bz2
misskey-2560d3d1c18b474700e8f1ed76da0d71bd332b07.zip
Fix bug
Diffstat (limited to 'src/client/app/desktop/views/components/notifications.vue')
-rw-r--r--src/client/app/desktop/views/components/notifications.vue12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/client/app/desktop/views/components/notifications.vue b/src/client/app/desktop/views/components/notifications.vue
index 8b17c8c430..598c2ad2fa 100644
--- a/src/client/app/desktop/views/components/notifications.vue
+++ b/src/client/app/desktop/views/components/notifications.vue
@@ -13,7 +13,7 @@
<mk-reaction-icon :reaction="notification.reaction"/>
<router-link :to="notification.user | userPage" v-user-preview="notification.user.id">{{ notification.user | userName }}</router-link>
</p>
- <router-link class="note-ref" :to="`/@${getAcct(notification.note.user)}/${notification.note.id}`">
+ <router-link class="note-ref" :to="notification.note | notePage">
%fa:quote-left%{{ getNoteSummary(notification.note) }}%fa:quote-right%
</router-link>
</div>
@@ -26,7 +26,7 @@
<p>%fa:retweet%
<router-link :to="notification.note.user | userPage" v-user-preview="notification.note.userId">{{ notification.note.user | userName }}</router-link>
</p>
- <router-link class="note-ref" :to="`/@${getAcct(notification.note.user)}/${notification.note.id}`">
+ <router-link class="note-ref" :to="notification.note | notePage">
%fa:quote-left%{{ getNoteSummary(notification.note.renote) }}%fa:quote-right%
</router-link>
</div>
@@ -39,7 +39,7 @@
<p>%fa:quote-left%
<router-link :to="notification.note.user | userPage" v-user-preview="notification.note.userId">{{ notification.note.user | userName }}</router-link>
</p>
- <router-link class="note-preview" :to="`/@${getAcct(notification.note.user)}/${notification.note.id}`">{{ getNoteSummary(notification.note) }}</router-link>
+ <router-link class="note-preview" :to="notification.note | notePage">{{ getNoteSummary(notification.note) }}</router-link>
</div>
</template>
<template v-if="notification.type == 'follow'">
@@ -60,7 +60,7 @@
<p>%fa:reply%
<router-link :to="notification.note.user | userPage" v-user-preview="notification.note.userId">{{ notification.note.user | userName }}</router-link>
</p>
- <router-link class="note-preview" :to="`/@${getAcct(notification.note.user)}/${notification.note.id}`">{{ getNoteSummary(notification.note) }}</router-link>
+ <router-link class="note-preview" :to="notification.note | notePage">{{ getNoteSummary(notification.note) }}</router-link>
</div>
</template>
<template v-if="notification.type == 'mention'">
@@ -71,7 +71,7 @@
<p>%fa:at%
<router-link :to="notification.note.user | userPage" v-user-preview="notification.note.userId">{{ notification.note.user | userName }}</router-link>
</p>
- <a class="note-preview" :href="`/@${getAcct(notification.note.user)}/${notification.note.id}`">{{ getNoteSummary(notification.note) }}</a>
+ <a class="note-preview" :href="notification.note | notePage">{{ getNoteSummary(notification.note) }}</a>
</div>
</template>
<template v-if="notification.type == 'poll_vote'">
@@ -80,7 +80,7 @@
</router-link>
<div class="text">
<p>%fa:chart-pie%<a :href="notification.user | userPage" v-user-preview="notification.user.id">{{ notification.user | userName }}</a></p>
- <router-link class="note-ref" :to="`/@${getAcct(notification.note.user)}/${notification.note.id}`">
+ <router-link class="note-ref" :to="notification.note | notePage">
%fa:quote-left%{{ getNoteSummary(notification.note) }}%fa:quote-right%
</router-link>
</div>