mirror of
https://github.com/ecency/ecency-mobile.git
synced 2025-01-02 02:31:41 +03:00
Merge pull request #1731 from ecency/bugfix/community
Fixed post result markdown issue
This commit is contained in:
commit
e94143f229
@ -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;
|
||||
}),
|
||||
),
|
||||
|
@ -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) && (
|
||||
|
Loading…
Reference in New Issue
Block a user