Ghost: Posts need content in their body, otherwise, Public posts become member-only and member-only become Paid-members-only

Created on 7 Feb 2020  路  3Comments  路  Source: TryGhost/Ghost

Issue Summary

Posts need content in their body, otherwise, Public posts become member-only and member-only become Paid-members-only.

Opening this issue here and not in Lyra as I'm unsure where the issue lies.

To Reproduce

For public post:

  1. Install Lyra, Turn ON and set up Members in Labs
  2. Create a public post,
  3. Write only a title and no content in the body,
  4. Publish the post
  5. The post will not be visible (a subscribe banner will cover it)

For member-only post:

  1. Install Lyra, Turn ON and set up Members in Labs
  2. Create a member-only post,
  3. Write only a title and no content in the body,
  4. Publish the post
  5. Log in as a member
  6. The post will not be visible (a become a paid subscriber banner will cover it)

Technical details:

  • Ghost Version: 3.5.0
  • Node Version: 10.19
  • Browser/OS: Brave/Chrome/Safari/Opera
  • Database: MySQL
bug help wanted members / mega themes / frontend

Most helpful comment

Thanks for the report @pateskinasy! Was able to reproduce this issue and after quick searches seems like it comes from this condition here - https://github.com/TryGhost/Ghost/blob/master/core/frontend/services/routing/controllers/entry.js#L88, should probably instead compare the visibility property on the entry if available.

Related discussion - https://github.com/TryGhost/Ghost/commit/d6b0db39c0dd3c4b54883b776cb6d3ba206f4cc2#r37223006

All 3 comments

Thanks for the report @pateskinasy! Was able to reproduce this issue and after quick searches seems like it comes from this condition here - https://github.com/TryGhost/Ghost/blob/master/core/frontend/services/routing/controllers/entry.js#L88, should probably instead compare the visibility property on the entry if available.

Related discussion - https://github.com/TryGhost/Ghost/commit/d6b0db39c0dd3c4b54883b776cb6d3ba206f4cc2#r37223006

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Re-opening as this needs looking at.

Was this page helpful?
0 / 5 - 0 ratings