0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-04-01 02:41:39 -05:00
ghost/core
Rishabh eac732f620 Added tiers data for posts with non tiers visibility
refs https://github.com/TryGhost/Team/issues/1004

The `tiers` column for a post/page only contained data if its visibility is set to `tiers`, otherwise its empty. This is because originally the purpose of `tiers` column on `post` was to capture specific tiers with access to post.
The best way to ensure a consistent behavior for `tiers` column data on post is to update it to always contain list of all `tiers` that have access to post, and not just when the visibility is `tiers`. This means the value is set to all tiers when visibility is one of public|members, and only paid tiers when visibility is `paid`.  This change also allows on frontend to get all relevant `tiers` information for a post locally within post context instead of relying on additional information from outside.

This change -

- updates the output serializer for post/page to add all desired tiers manually in case of visibility is not `tiers`
- updates tests
2022-03-04 18:22:59 +05:30
..
client@00fdd59b1d Updated Admin to v4.37.0 2022-02-25 16:00:27 +00:00
frontend 🐛 {{access}} property incorrect when using get/next-post/prev-post helpers (#14256) 2022-03-03 16:18:05 +01:00
server Added tiers data for posts with non tiers visibility 2022-03-04 18:22:59 +05:30
shared Removed membersTimeFilters labs flag 2022-03-04 12:11:48 +00:00
app.js Fixed express app stacking 2021-12-06 21:28:53 +13:00
boot.js Added handler for unhandled rejections 2022-02-18 10:35:36 +01:00
bridge.js 💡 Pinned frontend API version to canary 2022-02-17 17:55:55 +00:00