From 6f548a36fd6047c791fe161e07513e1bade92e6e Mon Sep 17 00:00:00 2001 From: "rusov.d.s" Date: Tue, 24 Apr 2018 10:26:06 +0700 Subject: [PATCH] change cut preview, add nsfw filter --- .../components/chains/feed/FeedArticle.vue | 16 +++++++------- .../chains/profile/ProfileBlogArticle.vue | 18 +++++++++------- common/@oneplace/blockchains-api/parser.js | 21 ++----------------- 3 files changed, 22 insertions(+), 33 deletions(-) diff --git a/client/src/components/chains/feed/FeedArticle.vue b/client/src/components/chains/feed/FeedArticle.vue index dc2278a..8548d74 100644 --- a/client/src/components/chains/feed/FeedArticle.vue +++ b/client/src/components/chains/feed/FeedArticle.vue @@ -6,6 +6,11 @@ @click.prevent="show" v-if="post.image !== DEFAULT_IMAGE" :style="`background-image: url('${post.image}')`"> +
+ {{$t('chains.imageIsHidden')}} +
@@ -14,12 +19,12 @@ class="feed__repost-avatar" :style="`background-image: url('${post.reblog_avatars[0]}');`" > - + {{post.reblog_by[0]}}
-

+

-

+

0 diff --git a/client/src/components/chains/profile/ProfileBlogArticle.vue b/client/src/components/chains/profile/ProfileBlogArticle.vue index 684a7ec..9acbf0d 100644 --- a/client/src/components/chains/profile/ProfileBlogArticle.vue +++ b/client/src/components/chains/profile/ProfileBlogArticle.vue @@ -7,6 +7,11 @@ v-if="post.image !== DEFAULT_IMAGE" class="feed__post-image" :style="`background-image: url('${post.image}')`"> +

@@ -15,10 +20,12 @@ {{post.author}}
-

- {{post.title}} +

+ + nsfw + {{post.title}}

-

+

{{cutPreview}}