0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-06 22:40:14 -05:00
ghost/test/unit
Rish 886f564dc4 Updated default visibility in foreach for posts to all
closes https://github.com/TryGhost/Team/issues/485

In order to loop over all posts, we currently need to pass a visibility="all" flag to a foreach as default for all items in current `visibility` helper is set to `public`. For a post, this behaviour is unintuitive, and inconsistent with the API. Instead, the default visibility should be "all" for the posts. The update allows themes to get all posts directly without passing in visibility -

```
{{#get "posts"}}
    {{#foreach posts}}
        //Loops over all posts, not just `public`
    {{/foreach}}
{{/get}}
```
2021-03-02 15:44:19 +05:30
..
adapters Fixed "no-shadow" eslint warning in tests 2020-10-19 17:45:26 +13:00
api Enabled Members for all sites (#12582) 2021-02-02 16:12:53 +00:00
apps 🔒 Fixed open redirect in private site login 2021-01-26 16:42:42 +00:00
data Added a primary key to the brute table 2021-03-01 12:17:26 +01:00
helpers Updated default visibility in foreach for posts to all 2021-03-02 15:44:19 +05:30
lib Updated mobiledoc tests for lazy loaded images (#12672) 2021-02-18 19:49:40 +00:00
models 🐛 Added multiple use grace period to tokens (#12519) 2021-01-18 17:03:41 +00:00
server Moved notify out of GhostServer 2021-02-19 20:22:56 +00:00
services 🐛 Fixed theme preview not decoding values properly 2021-03-01 11:54:50 +00:00
shared/config Updated tests locations and added linting of core/shared (#11872) 2020-06-01 22:06:50 +01:00
web Pointed the v3 unit tests to the actual v3 code 2021-01-22 16:32:03 +13:00