Skip to content

Commit

Permalink
Merge pull request pepyatka#197 from FreeFeed/dsumin/opengraph_hotfix
Browse files Browse the repository at this point in the history
Fix response for non-public posts
  • Loading branch information
dsumin authored Mar 2, 2017
2 parents 6c1351c + 338e5b6 commit 6e2aed3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/controllers/api/v2/PostsController.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ export default class PostsController {

// OpenGraph is available for public posts that are not protected
if (!post || post.isPrivate === '1' || post.isProtected === '1') {
ctx.body = '';
return;
}

Expand Down

0 comments on commit 6e2aed3

Please sign in to comment.