Merge branch 'fix-follow-relationship' into 'develop'
Fix follow notifications not having relationship Closes #1446 See merge request soapbox-pub/soapbox!2578
This commit is contained in:
commit
0c83f840fb
2 changed files with 6 additions and 2 deletions
|
@ -5,10 +5,11 @@ import Account, { IAccount } from 'soapbox/components/account';
|
||||||
|
|
||||||
interface IAccountContainer extends Omit<IAccount, 'account'> {
|
interface IAccountContainer extends Omit<IAccount, 'account'> {
|
||||||
id: string
|
id: string
|
||||||
|
withRelationship?: boolean
|
||||||
}
|
}
|
||||||
|
|
||||||
const AccountContainer: React.FC<IAccountContainer> = ({ id, ...props }) => {
|
const AccountContainer: React.FC<IAccountContainer> = ({ id, withRelationship, ...props }) => {
|
||||||
const { account } = useAccount(id);
|
const { account } = useAccount(id, { withRelationship });
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Account account={account!} {...props} />
|
<Account account={account!} {...props} />
|
||||||
|
|
|
@ -304,6 +304,7 @@ const Notification: React.FC<INotificaton> = (props) => {
|
||||||
id={account.id}
|
id={account.id}
|
||||||
hidden={hidden}
|
hidden={hidden}
|
||||||
avatarSize={avatarSize}
|
avatarSize={avatarSize}
|
||||||
|
withRelationship
|
||||||
/>
|
/>
|
||||||
) : null;
|
) : null;
|
||||||
case 'follow_request':
|
case 'follow_request':
|
||||||
|
@ -313,6 +314,7 @@ const Notification: React.FC<INotificaton> = (props) => {
|
||||||
hidden={hidden}
|
hidden={hidden}
|
||||||
avatarSize={avatarSize}
|
avatarSize={avatarSize}
|
||||||
actionType='follow_request'
|
actionType='follow_request'
|
||||||
|
withRelationship
|
||||||
/>
|
/>
|
||||||
) : null;
|
) : null;
|
||||||
case 'move':
|
case 'move':
|
||||||
|
@ -321,6 +323,7 @@ const Notification: React.FC<INotificaton> = (props) => {
|
||||||
id={notification.target.id}
|
id={notification.target.id}
|
||||||
hidden={hidden}
|
hidden={hidden}
|
||||||
avatarSize={avatarSize}
|
avatarSize={avatarSize}
|
||||||
|
withRelationship
|
||||||
/>
|
/>
|
||||||
) : null;
|
) : null;
|
||||||
case 'favourite':
|
case 'favourite':
|
||||||
|
|
Loading…
Reference in a new issue