diff --git a/pages/event/_slug.vue b/pages/event/_slug.vue index 8f7fc8f2..2e7ec36a 100644 --- a/pages/event/_slug.vue +++ b/pages/event/_slug.vue @@ -151,7 +151,7 @@ export default { error({ statusCode: 404, message: 'Event not found' }) } }, - data ({$store}) { + data ({$route}) { return { mdiArrowLeft, mdiArrowRight, mdiDotsVertical, mdiCodeTags, mdiCalendarExport, mdiCalendar, mdiFileDownloadOutline, mdiMessageTextOutline, mdiMapMarker, mdiContentCopy, mdiClose, mdiDelete, mdiEye, mdiEyeOff, mdiRepeat, mdiMap, mdiChevronUp, mdiMonitorAccount, mdiBookmark, mdiStar, mdiShareAll, @@ -159,7 +159,7 @@ export default { event: {}, showEmbed: false, mapModal: false, - openModeration: false, + openModeration: $route?.query?.moderation ? true : false, reporting: false } }, diff --git a/server/emails/report/html.pug b/server/emails/report/html.pug index b6468eab..825216d8 100644 --- a/server/emails/report/html.pug +++ b/server/emails/report/html.pug @@ -1,3 +1,3 @@ extends ../layout.pug block content - p !{t(`report.content_${author}`, {config, event, message, url: `${config.baseurl}/event/${event.slug || event.id}`})} + p !{t(`report.content_${author}`, {config, event, message, url: `${config.baseurl}/event/${event.slug || event.id}?moderation=true`})}