From e56c0a5ab723db3d6cac1f82117f32a3b8fb30c1 Mon Sep 17 00:00:00 2001 From: bitcoiner Date: Wed, 5 Oct 2016 23:07:56 -0700 Subject: [PATCH] Show Resteemed on Blog --- app/components/cards/PostSummary.jsx | 7 +++++++ app/components/cards/PostsList.jsx | 3 ++- app/components/pages/UserProfile.jsx | 1 + 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/app/components/cards/PostSummary.jsx b/app/components/cards/PostSummary.jsx index a167a453db..dacd9edd5b 100644 --- a/app/components/cards/PostSummary.jsx +++ b/app/components/cards/PostSummary.jsx @@ -52,6 +52,7 @@ export default class PostSummary extends React.Component { render() { const {currentCategory, thumbSize, ignore, onClick} = this.props; const {post, content, pending_payout, total_payout} = this.props; + const {account} = this.props; if (!content) return null; const archived = content.get('mode') === 'archived' @@ -63,6 +64,12 @@ export default class PostSummary extends React.Component { } + if(account && account != content.get('author')) { + reblogged_by =
+ Resteemed +
+ } + const {gray, pictures, authorRepLog10, hasFlag} = content.get('stats', Map()).toJS() const p = extractContent(immutableAccessor, content); let desc = p.desc diff --git a/app/components/cards/PostsList.jsx b/app/components/cards/PostsList.jsx index 43768df209..70d96ce8e8 100644 --- a/app/components/cards/PostsList.jsx +++ b/app/components/cards/PostsList.jsx @@ -154,12 +154,13 @@ class PostsList extends React.Component { render() { const {posts, loading, category, emptyText} = this.props; const {comments} = this.props + const {account} = this.props const {thumbSize, showPost} = this.state if (!loading && !posts.length && emptyText) { return ; } const renderSummary = items => items.map(({item, ignore, netVoteSign, authorRepLog10}) =>
  • -
  • ) return ( diff --git a/app/components/pages/UserProfile.jsx b/app/components/pages/UserProfile.jsx index f2344b1aaf..4d48799715 100644 --- a/app/components/pages/UserProfile.jsx +++ b/app/components/pages/UserProfile.jsx @@ -163,6 +163,7 @@ export default class UserProfile extends React.Component { if (account.blog) { tab_content =