diff --git a/app/soapbox/containers/account-container.tsx b/app/soapbox/containers/account-container.tsx index 6b41aef87..0e1ff4c37 100644 --- a/app/soapbox/containers/account-container.tsx +++ b/app/soapbox/containers/account-container.tsx @@ -5,10 +5,11 @@ import Account, { IAccount } from 'soapbox/components/account'; interface IAccountContainer extends Omit { id: string + withRelationship?: boolean } -const AccountContainer: React.FC = ({ id, ...props }) => { - const { account } = useAccount(id); +const AccountContainer: React.FC = ({ id, withRelationship, ...props }) => { + const { account } = useAccount(id, { withRelationship }); return ( diff --git a/app/soapbox/features/notifications/components/notification.tsx b/app/soapbox/features/notifications/components/notification.tsx index 7cf41bb4e..29f54bc2f 100644 --- a/app/soapbox/features/notifications/components/notification.tsx +++ b/app/soapbox/features/notifications/components/notification.tsx @@ -304,6 +304,7 @@ const Notification: React.FC = (props) => { id={account.id} hidden={hidden} avatarSize={avatarSize} + withRelationship /> ) : null; case 'follow_request': @@ -313,6 +314,7 @@ const Notification: React.FC = (props) => { hidden={hidden} avatarSize={avatarSize} actionType='follow_request' + withRelationship /> ) : null; case 'move': @@ -321,6 +323,7 @@ const Notification: React.FC = (props) => { id={notification.target.id} hidden={hidden} avatarSize={avatarSize} + withRelationship /> ) : null; case 'favourite':