From 92248fd4bc5f1f63431dde519a03dd9b6c2d1d36 Mon Sep 17 00:00:00 2001 From: Mustafa Buyukcelebi Date: Tue, 27 Aug 2019 00:21:06 +0300 Subject: [PATCH] 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';