From 7886fd599845b7b19ec97f2aa0c87bd38a6378c9 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Tue, 19 Oct 2021 19:43:40 -0600 Subject: [PATCH] Update Activity component, only show context button for actionable activities --- resources/assets/js/components/Activity.vue | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/resources/assets/js/components/Activity.vue b/resources/assets/js/components/Activity.vue index 2b3e68686..ca775b4f3 100644 --- a/resources/assets/js/components/Activity.vue +++ b/resources/assets/js/components/Activity.vue @@ -22,56 +22,60 @@ {{n.account.local == false ? '@':''}}{{truncate(n.account.username)}} liked your post.

+

{{n.account.local == false ? '@':''}}{{truncate(n.account.username)}} commented on your post.

+

{{n.account.local == false ? '@':''}}{{truncate(n.account.username)}} commented on your group post.

+

{{n.account.local == false ? '@':''}}{{truncate(n.account.username)}} reacted to your story.

+

{{n.account.local == false ? '@':''}}{{truncate(n.account.username)}} commented on your story.

+

{{n.account.local == false ? '@':''}}{{truncate(n.account.username)}} mentioned you.

+

{{n.account.local == false ? '@':''}}{{truncate(n.account.username)}} followed you.

+

{{n.account.local == false ? '@':''}}{{truncate(n.account.username)}} shared your post.

+

{{truncate(n.account.username)}} updated a modlog.

+

{{n.account.local == false ? '@':''}}{{truncate(n.account.username)}} tagged you in a post.

-
-

- {{n.account.local == false ? '@':''}}{{truncate(n.account.username)}} sent a dm. -

-
{{timeAgo(n.created_at)}}
@@ -105,7 +109,7 @@ -->
- View + View
@@ -209,6 +213,9 @@ export default { } return true; }); + + let ids = data.map(n => n.id); + this.notificationMaxId = Math.max(...ids); this.notifications.push(...data); this.notificationCursor++; $state.loaded();