0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-11 02:12:21 -05:00
ghost/test
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
..
api-acceptance Bumped gscan to 4.0.0-pre.1 2021-03-01 19:26:17 +13:00
frontend-acceptance Fixed status code for unauthenticated requests 2021-03-01 16:19:28 +00:00
regression Hardened frontend tests checking API engine 2021-02-24 18:55:12 +13:00
unit Updated default visibility in foreach for posts to all 2021-03-02 15:44:19 +05:30
utils 💡 Enabled foreign key checks on sqlite3 2021-03-02 11:13:19 +01:00
.eslintignore
.eslintrc.json Enabled error for "no-shadow" eslint rule 2020-10-27 11:27:37 +13:00
.jshintrc