mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-21 04:11:50 +03:00
commit
e8972ff002
@ -114,7 +114,7 @@ const PostCardContainer = ({
|
|||||||
handleOnReblogsPress={_handleOnReblogsPress}
|
handleOnReblogsPress={_handleOnReblogsPress}
|
||||||
content={content}
|
content={content}
|
||||||
isHideImage={isHideImage}
|
isHideImage={isHideImage}
|
||||||
isNsfwPost={nsfw || '1'}
|
nsfw={nsfw || '1'}
|
||||||
reblogs={reblogs}
|
reblogs={reblogs}
|
||||||
activeVotes={activeVotes}
|
activeVotes={activeVotes}
|
||||||
imageHeight={imageHeight}
|
imageHeight={imageHeight}
|
||||||
|
@ -34,7 +34,7 @@ const PostCardView = ({
|
|||||||
reblogs,
|
reblogs,
|
||||||
isHideImage,
|
isHideImage,
|
||||||
fetchPost,
|
fetchPost,
|
||||||
isNsfwPost,
|
nsfw,
|
||||||
intl,
|
intl,
|
||||||
activeVotes,
|
activeVotes,
|
||||||
imageHeight,
|
imageHeight,
|
||||||
@ -77,11 +77,11 @@ const PostCardView = ({
|
|||||||
const rebloggedBy = get(content, 'reblogged_by[0]', null);
|
const rebloggedBy = get(content, 'reblogged_by[0]', null);
|
||||||
var images = { image: DEFAULT_IMAGE, thumbnail: DEFAULT_IMAGE };
|
var images = { image: DEFAULT_IMAGE, thumbnail: DEFAULT_IMAGE };
|
||||||
if (content.thumbnail) {
|
if (content.thumbnail) {
|
||||||
if (isNsfwPost && content.nsfw) {
|
if (nsfw !== '0' && content.nsfw) {
|
||||||
images = { image: NSFW_IMAGE, thumbnail: NSFW_IMAGE };
|
images = { image: NSFW_IMAGE, thumbnail: NSFW_IMAGE };
|
||||||
}
|
} else {
|
||||||
|
|
||||||
images = { image: content.image, thumbnail: content.thumbnail };
|
images = { image: content.image, thumbnail: content.thumbnail };
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
images = { image: DEFAULT_IMAGE, thumbnail: DEFAULT_IMAGE };
|
images = { image: DEFAULT_IMAGE, thumbnail: DEFAULT_IMAGE };
|
||||||
}
|
}
|
||||||
|
@ -11,6 +11,7 @@ export default (posts, option) => {
|
|||||||
return posts;
|
return posts;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//removes nsfw post from array ... filter value '2'
|
||||||
if (posts) {
|
if (posts) {
|
||||||
posts.map((post) => {
|
posts.map((post) => {
|
||||||
if (
|
if (
|
||||||
|
Loading…
Reference in New Issue
Block a user