about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPaul Frazee <pfrazee@gmail.com>2022-12-13 14:53:00 -0600
committerPaul Frazee <pfrazee@gmail.com>2022-12-13 14:53:00 -0600
commite4ee6e5bb6221711ca5e875bc4069a8024f09a32 (patch)
treed08ba72f45954b7782158d59845d8b7cbc0fc36f
parent9e1bb898f061862aada3987a643927762cd0ee26 (diff)
downloadvoidsky-e4ee6e5bb6221711ca5e875bc4069a8024f09a32.tar.zst
Fix: show avatars in all notifications
-rw-r--r--src/state/models/notifications-view.ts1
-rw-r--r--src/view/com/notifications/FeedItem.tsx9
2 files changed, 9 insertions, 1 deletions
diff --git a/src/state/models/notifications-view.ts b/src/state/models/notifications-view.ts
index 12bf3184d..cc8952512 100644
--- a/src/state/models/notifications-view.ts
+++ b/src/state/models/notifications-view.ts
@@ -25,6 +25,7 @@ export class NotificationsViewItemModel implements GroupedNotification {
   author: ActorRef.WithInfo = {
     did: '',
     handle: '',
+    avatar: '',
     declaration: {cid: '', actorType: ''},
   }
   reason: string = ''
diff --git a/src/view/com/notifications/FeedItem.tsx b/src/view/com/notifications/FeedItem.tsx
index c61159c72..70c4f5216 100644
--- a/src/view/com/notifications/FeedItem.tsx
+++ b/src/view/com/notifications/FeedItem.tsx
@@ -93,11 +93,17 @@ export const FeedItem = observer(function FeedItem({
     return <></>
   }
 
-  let authors: {href: string; handle: string; displayName?: string}[] = [
+  let authors: {
+    href: string
+    handle: string
+    displayName?: string
+    avatar?: string
+  }[] = [
     {
       href: `/profile/${item.author.handle}`,
       handle: item.author.handle,
       displayName: item.author.displayName,
+      avatar: item.author.avatar,
     },
   ]
   if (item.additional?.length) {
@@ -106,6 +112,7 @@ export const FeedItem = observer(function FeedItem({
         href: `/profile/${item2.author.handle}`,
         handle: item2.author.handle,
         displayName: item2.author.displayName,
+        avatar: item2.author.avatar,
       })),
     )
   }