diff --git a/CHANGELOG.md b/CHANGELOG.md index 45e846eb2..64898e30a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ - Updated PrettyNumber, fix deprecated warning. ([20ec870b](https://github.com/pixelfed/pixelfed/commit/20ec870b)) - Updated landing page, use config_cache. ([54920294](https://github.com/pixelfed/pixelfed/commit/54920294)) - Updated Timeline, implement suggested post opt out. ([66750d34](https://github.com/pixelfed/pixelfed/commit/66750d34)) +- Updated Notification component, add at (@) symbol for remote profiles and local urls for remote posts and profile. ([aafd6a21](https://github.com/pixelfed/pixelfed/commit/aafd6a21)) - ([](https://github.com/pixelfed/pixelfed/commit/)) ## [v0.11.0 (2021-06-01)](https://github.com/pixelfed/pixelfed/compare/v0.10.10...v0.11.0) diff --git a/public/js/network-timeline.js b/public/js/network-timeline.js index e6733db6b..576ac2021 100644 Binary files a/public/js/network-timeline.js and b/public/js/network-timeline.js differ diff --git a/public/js/timeline.js b/public/js/timeline.js index e6ab5a801..7bc90ea3f 100644 Binary files a/public/js/timeline.js and b/public/js/timeline.js differ diff --git a/public/mix-manifest.json b/public/mix-manifest.json index 53dd3292b..519e6860b 100644 Binary files a/public/mix-manifest.json and b/public/mix-manifest.json differ diff --git a/resources/assets/js/components/NotificationCard.vue b/resources/assets/js/components/NotificationCard.vue index ef694f3b9..d0109f1f3 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; } } }