Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/shared/src/components/post/composer/TextForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ export const TextForm = forwardRef<TextFormHandle, TextFormProps>(
src={cover.preview}
alt="Post cover"
className={classNames(
'block aspect-[2/1] w-full rounded-16 object-cover transition-opacity',
'block h-44 w-full rounded-16 object-cover transition-opacity',
'group-hover:brightness-95',
cover.isUploading && 'opacity-50',
)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import type {
ExternalLinkPreview,
} from '../../../graphql/posts';
import type { Squad } from '../../../graphql/sources';
import { moderationRequired } from '../../squads/utils';
import {
POLL_OPTIONS_MIN,
STANDUP_TOPIC_MAX_LENGTH,
Expand Down Expand Up @@ -161,9 +162,14 @@ export const useComposerSubmit = ({
sourceIds: selectedIds,
...payload,
} as unknown as CreatePostInMultipleSourcesArgs);
return;
} else {
await onSubmitFreeformPost(payload, primary as Squad);
}
await onSubmitFreeformPost(payload, primary as Squad);
displayToast(
!isMulti && moderationRequired(primary as Squad)
? '✅ Your post has been submitted for moderation'
: '✅ Your post has been created!',
);
};

const submitPoll = async () => {
Expand Down