Merge pull request #1731 from ecency/bugfix/community

Fixed post result markdown issue
This commit is contained in:
Feruz M 2020-07-22 21:37:25 +03:00 committed by GitHub
commit e94143f229
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 3 deletions

View File

@ -34,6 +34,7 @@ const PostResultContainer = ({ children, navigation, searchValue, currentAccount
true,
).then((post) => {
post.author_rep = post.author_reputation;
post.body = post.summary.substring(0, 130) || '';
return post;
}),
),

View File

@ -34,9 +34,11 @@ const PostResult = ({ navigation, searchValue }) => {
<FastImage source={item.img_url} style={styles.thumbnail} defaultSource={DEFAULT_IMAGE} />
<View style={[styles.postDescription]}>
<Text style={styles.title}>{item.title}</Text>
<Text style={styles.summary} numberOfLines={2}>
{item.body}
</Text>
{!!item.body && (
<Text style={styles.summary} numberOfLines={2}>
{item.body}
</Text>
)}
</View>
<View style={styles.stats}>
{!isUndefined(item.payout) && (