mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-11-25 21:53:04 +03:00
Merge branch 'development' into nt/hive-auth
This commit is contained in:
commit
d04aa637df
@ -30,6 +30,7 @@ type Props = {
|
|||||||
paramFiles: any[];
|
paramFiles: any[];
|
||||||
isEditing: boolean;
|
isEditing: boolean;
|
||||||
isPreviewActive: boolean;
|
isPreviewActive: boolean;
|
||||||
|
isEditMode: boolean;
|
||||||
setIsUploading: (isUploading: boolean) => void;
|
setIsUploading: (isUploading: boolean) => void;
|
||||||
handleMediaInsert: (data: MediaInsertData[]) => void;
|
handleMediaInsert: (data: MediaInsertData[]) => void;
|
||||||
handleOnAddLinkPress: () => void;
|
handleOnAddLinkPress: () => void;
|
||||||
@ -44,6 +45,7 @@ export const EditorToolbar = ({
|
|||||||
paramFiles,
|
paramFiles,
|
||||||
isEditing,
|
isEditing,
|
||||||
isPreviewActive,
|
isPreviewActive,
|
||||||
|
isEditMode,
|
||||||
setIsUploading,
|
setIsUploading,
|
||||||
handleMediaInsert,
|
handleMediaInsert,
|
||||||
handleOnAddLinkPress,
|
handleOnAddLinkPress,
|
||||||
@ -284,6 +286,7 @@ export const EditorToolbar = ({
|
|||||||
name="text-short"
|
name="text-short"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
{!isEditMode && (
|
||||||
<IconButton
|
<IconButton
|
||||||
size={18}
|
size={18}
|
||||||
style={[styles.rightIcons, !!pollDraft?.title && styles.iconBottomBar]}
|
style={[styles.rightIcons, !!pollDraft?.title && styles.iconBottomBar]}
|
||||||
@ -292,6 +295,7 @@ export const EditorToolbar = ({
|
|||||||
name="chart"
|
name="chart"
|
||||||
onPress={_showPollsExtension}
|
onPress={_showPollsExtension}
|
||||||
/>
|
/>
|
||||||
|
)}
|
||||||
|
|
||||||
<IconButton
|
<IconButton
|
||||||
onPress={_showImageUploads}
|
onPress={_showImageUploads}
|
||||||
|
@ -447,6 +447,7 @@ const MarkdownEditorView = ({
|
|||||||
postBody={bodyTextRef.current}
|
postBody={bodyTextRef.current}
|
||||||
isPreviewActive={isPreviewActive}
|
isPreviewActive={isPreviewActive}
|
||||||
paramFiles={paramFiles}
|
paramFiles={paramFiles}
|
||||||
|
isEditMode={isEdit}
|
||||||
setIsUploading={setIsUploading}
|
setIsUploading={setIsUploading}
|
||||||
handleMediaInsert={_handleMediaInsert}
|
handleMediaInsert={_handleMediaInsert}
|
||||||
handleOnAddLinkPress={_handleOnAddLinkPress}
|
handleOnAddLinkPress={_handleOnAddLinkPress}
|
||||||
|
@ -961,6 +961,8 @@ class EditorContainer extends Component<EditorContainerProps, any> {
|
|||||||
videoThumbUrls: speakContentBuilder.thumbUrlsRef.current,
|
videoThumbUrls: speakContentBuilder.thumbUrlsRef.current,
|
||||||
thumbUrl,
|
thumbUrl,
|
||||||
fetchRatios: true,
|
fetchRatios: true,
|
||||||
|
postType: jsonMetadata.type,
|
||||||
|
contentType: jsonMetadata.content_type,
|
||||||
});
|
});
|
||||||
|
|
||||||
let jsonMeta = {};
|
let jsonMeta = {};
|
||||||
|
@ -229,6 +229,7 @@ export const extractMetadata = async ({
|
|||||||
videoThumbUrls,
|
videoThumbUrls,
|
||||||
fetchRatios,
|
fetchRatios,
|
||||||
postType,
|
postType,
|
||||||
|
contentType,
|
||||||
videoPublishMeta,
|
videoPublishMeta,
|
||||||
pollDraft,
|
pollDraft,
|
||||||
}: {
|
}: {
|
||||||
@ -237,6 +238,7 @@ export const extractMetadata = async ({
|
|||||||
videoThumbUrls: string[];
|
videoThumbUrls: string[];
|
||||||
fetchRatios?: boolean;
|
fetchRatios?: boolean;
|
||||||
postType?: PostTypes;
|
postType?: PostTypes;
|
||||||
|
contentType?: ContentType;
|
||||||
videoPublishMeta?: ThreeSpeakVideo;
|
videoPublishMeta?: ThreeSpeakVideo;
|
||||||
pollDraft?: PollDraft;
|
pollDraft?: PollDraft;
|
||||||
}) => {
|
}) => {
|
||||||
@ -244,7 +246,7 @@ export const extractMetadata = async ({
|
|||||||
// const userReg = /(^|\s)(@[a-z][-.a-z\d]+[a-z\d])/gim;
|
// const userReg = /(^|\s)(@[a-z][-.a-z\d]+[a-z\d])/gim;
|
||||||
|
|
||||||
let out: PostMetadata = {
|
let out: PostMetadata = {
|
||||||
content_type: ContentType.GENERAL,
|
content_type: contentType || ContentType.GENERAL,
|
||||||
};
|
};
|
||||||
|
|
||||||
const mUrls = extractUrls(body);
|
const mUrls = extractUrls(body);
|
||||||
|
Loading…
Reference in New Issue
Block a user