Merge branch 'add-share-ability' into 'develop'

Add share ability to Group statuses

See merge request soapbox-pub/soapbox!2405
This commit is contained in:
Chewbacca 2023-04-12 20:09:13 +00:00
commit d165651800
2 changed files with 2 additions and 2 deletions

View File

@ -609,7 +609,7 @@ const StatusActionBar: React.FC<IStatusActionBar> = ({
replyTitle = intl.formatMessage(messages.replyAll); replyTitle = intl.formatMessage(messages.replyAll);
} }
const canShare = ('share' in navigator) && status.visibility === 'public'; const canShare = ('share' in navigator) && (status.visibility === 'public' || status.visibility === 'group');
return ( return (
<HStack data-testid='status-action-bar'> <HStack data-testid='status-action-bar'>

View File

@ -20,7 +20,7 @@ import type { ReducerAccount } from 'soapbox/reducers/accounts';
import type { Account, Attachment, Card, Emoji, Group, Mention, Poll, EmbeddedEntity } from 'soapbox/types/entities'; import type { Account, Attachment, Card, Emoji, Group, Mention, Poll, EmbeddedEntity } from 'soapbox/types/entities';
export type StatusApprovalStatus = 'pending' | 'approval' | 'rejected'; export type StatusApprovalStatus = 'pending' | 'approval' | 'rejected';
export type StatusVisibility = 'public' | 'unlisted' | 'private' | 'direct' | 'self'; export type StatusVisibility = 'public' | 'unlisted' | 'private' | 'direct' | 'self' | 'group';
export type EventJoinMode = 'free' | 'restricted' | 'invite'; export type EventJoinMode = 'free' | 'restricted' | 'invite';
export type EventJoinState = 'pending' | 'reject' | 'accept'; export type EventJoinState = 'pending' | 'reject' | 'accept';