check for current user on tag pages
This commit is contained in:
parent
80a494f9ba
commit
1ab2ead10c
1 changed files with 1 additions and 1 deletions
|
|
@ -5,7 +5,7 @@ module MobileHelper
|
|||
end
|
||||
|
||||
def mobile_reshare_icon(post)
|
||||
if (post.public? || reshare?(post)) && post.author != current_user.person
|
||||
if (post.public? || reshare?(post)) && (user_signed_in? && post.author != current_user.person)
|
||||
root = reshare?(post) ? post.root : post
|
||||
|
||||
if root.author != current_user.person.id
|
||||
|
|
|
|||
Loading…
Reference in a new issue