Skip to content

Commit 3cb676b

Browse files
committed
Update NotificationCard.vue, fix share notifications
1 parent 844566b commit 3cb676b

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

resources/assets/js/components/NotificationCard.vue

+2-7
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
</div>
4141
<div v-else-if="n.type == 'share'">
4242
<p class="my-0">
43-
<a :href="n.account.url" class="font-weight-bold text-dark word-break" :title="n.account.username">{{truncate(n.account.username)}}</a> shared your <a class="font-weight-bold" v-bind:href="n.status.reblog.url">post</a>.
43+
<a :href="n.account.url" class="font-weight-bold text-dark word-break" :title="n.account.username">{{truncate(n.account.username)}}</a> shared your <a class="font-weight-bold" v-bind:href="n.status.url">post</a>.
4444
</p>
4545
</div>
4646
<div v-else-if="n.type == 'modlog'">
@@ -90,12 +90,7 @@
9090
fetchNotifications() {
9191
axios.get('/api/pixelfed/v1/notifications')
9292
.then(res => {
93-
let data = res.data.filter(n => {
94-
if(n.type == 'share' && !status) {
95-
return false;
96-
}
97-
return true;
98-
});
93+
let data = res.data;
9994
let ids = res.data.map(n => n.id);
10095
this.notificationMaxId = Math.min(...ids);
10196
this.notifications = data;

0 commit comments

Comments
 (0)