diff --git a/src/boot/routes.js b/src/boot/routes.js index 05513794..9dba532a 100644 --- a/src/boot/routes.js +++ b/src/boot/routes.js @@ -16,6 +16,7 @@ import Notifications from 'components/notifications/notifications.vue' import UserPanel from 'components/user_panel/user_panel.vue' import LoginForm from 'components/login_form/login_form.vue' import ChatPanel from 'components/chat_panel/chat_panel.vue' +import WhoToFollow from 'components/who_to_follow/who_to_follow.vue' import About from 'components/about/about.vue' export default (store) => { @@ -47,6 +48,7 @@ export default (store) => { { name: 'chat', path: '/chat', component: ChatPanel, props: () => ({ floating: false }) }, { name: 'oauth-callback', path: '/oauth-callback', component: OAuthCallback, props: (route) => ({ code: route.query.code }) }, { name: 'user-search', path: '/user-search', component: UserSearch, props: (route) => ({ query: route.query.query }) }, + { name: 'who-to-follow', path: '/who-to-follow', component: WhoToFollow }, { name: 'about', path: '/about', component: About }, { name: 'user-profile', path: '/(users/)?:name', component: UserProfile } ] diff --git a/src/components/attachment/attachment.js b/src/components/attachment/attachment.js index 2698fb67..d16e5086 100644 --- a/src/components/attachment/attachment.js +++ b/src/components/attachment/attachment.js @@ -26,6 +26,9 @@ const Attachment = { usePlaceHolder () { return this.size === 'hide' || this.type === 'unknown' }, + referrerpolicy () { + return this.$store.state.instance.mediaProxyAvailable ? '' : 'no-referrer' + }, type () { return fileTypeService.fileType(this.attachment.mimetype) }, diff --git a/src/components/attachment/attachment.vue b/src/components/attachment/attachment.vue index 74993fd9..ad5120c0 100644 --- a/src/components/attachment/attachment.vue +++ b/src/components/attachment/attachment.vue @@ -19,7 +19,7 @@ :href="attachment.url" target="_blank" :title="attachment.description" > - +