diff --git a/resources/assets/js/components/NotificationCard.vue b/resources/assets/js/components/NotificationCard.vue index ef694f3b..d0109f1f 100644 --- a/resources/assets/js/components/NotificationCard.vue +++ b/resources/assets/js/components/NotificationCard.vue @@ -20,51 +20,51 @@

- {{truncate(n.account.username)}} liked your + {{n.account.local == false ? '@':''}}{{truncate(n.account.username)}} liked your - post. + post. - post. + post.

- {{truncate(n.account.username)}} commented on your post. + {{n.account.local == false ? '@':''}}{{truncate(n.account.username)}} commented on your post.

- {{truncate(n.account.username)}} mentioned you. + {{n.account.local == false ? '@':''}}{{truncate(n.account.username)}} mentioned you.

- {{truncate(n.account.username)}} followed you. + {{n.account.local == false ? '@':''}}{{truncate(n.account.username)}} followed you.

- {{truncate(n.account.username)}} shared your post. + {{n.account.local == false ? '@':''}}{{truncate(n.account.username)}} shared your post.

- {{truncate(n.account.username)}} updated a modlog. + {{truncate(n.account.username)}} updated a modlog.

- {{truncate(n.account.username)}} tagged you in a post. + {{n.account.local == false ? '@':''}}{{truncate(n.account.username)}} tagged you in a post.

- {{truncate(n.account.username)}} sent a dm. + {{n.account.local == false ? '@':''}}{{truncate(n.account.username)}} sent a dm.

@@ -256,6 +256,22 @@ return '/storage/no-preview.png'; } return n.status.media_attachments[0].preview_url; + }, + + getProfileUrl(account) { + if(account.local == true) { + return account.url; + } + + return '/i/web/profile/_/' + account.id; + }, + + getPostUrl(status) { + if(status.local == true) { + return status.url; + } + + return '/i/web/post/_/' + status.account.id + '/' + status.id; } } }