Fix: show avatars in all notifications
parent
9e1bb898f0
commit
e4ee6e5bb6
|
@ -25,6 +25,7 @@ export class NotificationsViewItemModel implements GroupedNotification {
|
||||||
author: ActorRef.WithInfo = {
|
author: ActorRef.WithInfo = {
|
||||||
did: '',
|
did: '',
|
||||||
handle: '',
|
handle: '',
|
||||||
|
avatar: '',
|
||||||
declaration: {cid: '', actorType: ''},
|
declaration: {cid: '', actorType: ''},
|
||||||
}
|
}
|
||||||
reason: string = ''
|
reason: string = ''
|
||||||
|
|
|
@ -93,11 +93,17 @@ export const FeedItem = observer(function FeedItem({
|
||||||
return <></>
|
return <></>
|
||||||
}
|
}
|
||||||
|
|
||||||
let authors: {href: string; handle: string; displayName?: string}[] = [
|
let authors: {
|
||||||
|
href: string
|
||||||
|
handle: string
|
||||||
|
displayName?: string
|
||||||
|
avatar?: string
|
||||||
|
}[] = [
|
||||||
{
|
{
|
||||||
href: `/profile/${item.author.handle}`,
|
href: `/profile/${item.author.handle}`,
|
||||||
handle: item.author.handle,
|
handle: item.author.handle,
|
||||||
displayName: item.author.displayName,
|
displayName: item.author.displayName,
|
||||||
|
avatar: item.author.avatar,
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
if (item.additional?.length) {
|
if (item.additional?.length) {
|
||||||
|
@ -106,6 +112,7 @@ export const FeedItem = observer(function FeedItem({
|
||||||
href: `/profile/${item2.author.handle}`,
|
href: `/profile/${item2.author.handle}`,
|
||||||
handle: item2.author.handle,
|
handle: item2.author.handle,
|
||||||
displayName: item2.author.displayName,
|
displayName: item2.author.displayName,
|
||||||
|
avatar: item2.author.avatar,
|
||||||
})),
|
})),
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue