Skip to content

Commit

Permalink
Link preview is removed for all users if the user that posted the lin…
Browse files Browse the repository at this point in the history
…k removes it. (mattermost#1181)
  • Loading branch information
lisakycho authored and jwilander committed May 8, 2018
1 parent 8a5f196 commit f77b546
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -248,8 +248,8 @@ export default class PostAttachmentOpenGraph extends React.PureComponent {
});
}

isRemovePreview(post, currentUser) {
if (post && post.props && currentUser.id === post.user_id) {
isRemovePreview(post) {
if (post && post.props) {
return post.props[PostTypes.REMOVE_LINK_PREVIEW] && post.props[PostTypes.REMOVE_LINK_PREVIEW] === 'true';
}

Expand Down

0 comments on commit f77b546

Please sign in to comment.