From 92248fd4bc5f1f63431dde519a03dd9b6c2d1d36 Mon Sep 17 00:00:00 2001 From: Mustafa Buyukcelebi Date: Tue, 27 Aug 2019 00:21:06 +0300 Subject: [PATCH 1/4] Fixed same description issue on drafts --- src/screens/drafts/screen/draftsScreen.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/screens/drafts/screen/draftsScreen.js b/src/screens/drafts/screen/draftsScreen.js index bfa90c1be..57caaf1bc 100644 --- a/src/screens/drafts/screen/draftsScreen.js +++ b/src/screens/drafts/screen/draftsScreen.js @@ -4,7 +4,7 @@ import { injectIntl } from 'react-intl'; import { View, FlatList, Text } from 'react-native'; import ScrollableTabView from 'react-native-scrollable-tab-view'; import ActionSheet from 'react-native-actionsheet'; -import { postBodySummary } from '@esteemapp/esteem-render-helpers'; +import postBodySummary from '@esteemapp/esteem-render-helpers/src/post-body-summary'; // Utils import { catchDraftImage } from '../../../utils/image'; @@ -42,6 +42,7 @@ class DraftsScreen extends Component { const tags = item.tags ? item.tags.split(/[ ,]+/) : []; const tag = tags[0] || ''; const image = catchDraftImage(item.body); + item.last_update = item.created; const summary = postBodySummary(item, 100); const isSchedules = type === 'schedules'; From d72231c7df84741c6907b204a7eeadcb9332751d Mon Sep 17 00:00:00 2001 From: Mustafa Buyukcelebi Date: Tue, 27 Aug 2019 00:22:01 +0300 Subject: [PATCH 2/4] Fixed same description issue on drafts --- src/screens/drafts/screen/draftsScreen.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/screens/drafts/screen/draftsScreen.js b/src/screens/drafts/screen/draftsScreen.js index 57caaf1bc..b1ff8003e 100644 --- a/src/screens/drafts/screen/draftsScreen.js +++ b/src/screens/drafts/screen/draftsScreen.js @@ -4,7 +4,7 @@ import { injectIntl } from 'react-intl'; import { View, FlatList, Text } from 'react-native'; import ScrollableTabView from 'react-native-scrollable-tab-view'; import ActionSheet from 'react-native-actionsheet'; -import postBodySummary from '@esteemapp/esteem-render-helpers/src/post-body-summary'; +import { postBodySummary } from '@esteemapp/esteem-render-helpers'; // Utils import { catchDraftImage } from '../../../utils/image'; From 48ac6f33b4a911eb62ead6cde88c6b31e0725ebf Mon Sep 17 00:00:00 2001 From: Mustafa Buyukcelebi Date: Tue, 27 Aug 2019 01:31:30 +0300 Subject: [PATCH 3/4] Update src/screens/drafts/screen/draftsScreen.js MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: uğur erdal --- src/screens/drafts/screen/draftsScreen.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/screens/drafts/screen/draftsScreen.js b/src/screens/drafts/screen/draftsScreen.js index b1ff8003e..a78075966 100644 --- a/src/screens/drafts/screen/draftsScreen.js +++ b/src/screens/drafts/screen/draftsScreen.js @@ -43,7 +43,7 @@ class DraftsScreen extends Component { const tag = tags[0] || ''; const image = catchDraftImage(item.body); item.last_update = item.created; - const summary = postBodySummary(item, 100); + const summary = postBodySummary({ item, last_update: item.created }, 100); const isSchedules = type === 'schedules'; return ( From b783f26af6acc4a88bc24047bfa1c71416af2f6b Mon Sep 17 00:00:00 2001 From: Mustafa Buyukcelebi Date: Tue, 27 Aug 2019 01:31:38 +0300 Subject: [PATCH 4/4] Update src/screens/drafts/screen/draftsScreen.js MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: uğur erdal --- src/screens/drafts/screen/draftsScreen.js | 1 - 1 file changed, 1 deletion(-) diff --git a/src/screens/drafts/screen/draftsScreen.js b/src/screens/drafts/screen/draftsScreen.js index a78075966..da783cbc2 100644 --- a/src/screens/drafts/screen/draftsScreen.js +++ b/src/screens/drafts/screen/draftsScreen.js @@ -42,7 +42,6 @@ class DraftsScreen extends Component { const tags = item.tags ? item.tags.split(/[ ,]+/) : []; const tag = tags[0] || ''; const image = catchDraftImage(item.body); - item.last_update = item.created; const summary = postBodySummary({ item, last_update: item.created }, 100); const isSchedules = type === 'schedules';