aboutsummaryrefslogtreecommitdiff
path: root/src/components/notification/notification.vue
diff options
context:
space:
mode:
authorShpuld Shpuldson <shp@cock.li>2021-01-11 19:32:58 +0200
committerShpuld Shpuldson <shp@cock.li>2021-01-11 19:32:58 +0200
commit8674f2002320aaa6c380488b0eab636a53c76705 (patch)
tree79b260a72600c37024d9c197467dd6001527544b /src/components/notification/notification.vue
parenta4e3cccf1cba238e5bfd96ea8c60f0d12bc6b7aa (diff)
separated component
Diffstat (limited to 'src/components/notification/notification.vue')
-rw-r--r--src/components/notification/notification.vue33
1 files changed, 3 insertions, 30 deletions
diff --git a/src/components/notification/notification.vue b/src/components/notification/notification.vue
index 39e3bda0..3b74249d 100644
--- a/src/components/notification/notification.vue
+++ b/src/components/notification/notification.vue
@@ -183,37 +183,10 @@
@{{ notification.target.screen_name }}
</router-link>
</div>
- <div
+ <Report
v-else-if="notification.type === 'pleroma:report'"
- >
- <small>Reported user:</small>
- <router-link :to="generateUserProfileLink(notification.report.acct)">
- @{{ notification.report.acct.screen_name }}
- </router-link>
- <!-- eslint-disable vue/no-v-html -->
- <div
- class="report-content"
- v-html="notification.report.content"
- />
- <div v-if="notification.report.statuses.length">
- <small>Reported statuses:</small>
- <!-- eslint-enable vue/no-v-html -->
- <router-link
- v-for="status in notification.report.statuses"
- :key="status.id"
- :to="{ name: 'conversation', params: { id: status.id } }"
- class="reported-status"
- >
- <span class="reported-status-name">{{ status.user.name }}</span>
- <Timeago
- :time="status.created_at"
- :auto-update="240"
- class="reported-status-timeago faint"
- />
- <status-content :status="status" />
- </router-link>
- </div>
- </div>
+ :report="notification.report"
+ />
<template v-else>
<status-content
class="faint"