Skip to content

Commit

Permalink
Merge branch 'release/5.0.3'
Browse files Browse the repository at this point in the history
* release/5.0.3:
  updated the changelog
  Check for existance of the post
  updates changelog
  • Loading branch information
austintoddj committed Dec 16, 2019
2 parents 6d528d9 + 71e3588 commit 0302b81
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,15 @@

## [Unreleased](https://github.com/cnvs/canvas/compare/master...develop)

## [5.0.3](https://github.com/cnvs/canvas/compare/v5.0.2...v5.0.3) (December 16, 2019)

## Fixed
- Added an existence check in the default template ([0ea4bf7](https://github.com/cnvs/canvas/pull/582/commits/0ea4bf7859da54967410751b3b39807fba16ca3c))

## [5.0.2](https://github.com/cnvs/canvas/compare/v5.0.1...v5.0.2) (December 13, 2019)

## Fixed
- Fixed a non-object error on the default template [fc65d52](https://github.com/cnvs/canvas/commit/fc65d520e722bb44cf376be698823fa5f92c236e)
- Fixed a non-object error on the default template ([fc65d52](https://github.com/cnvs/canvas/commit/fc65d520e722bb44cf376be698823fa5f92c236e))

## [5.0.1](https://github.com/cnvs/canvas/compare/v5.0.0...v5.0.1) (December 7, 2019)

Expand Down
2 changes: 1 addition & 1 deletion resources/stubs/controllers/BlogController.stub
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class BlogController extends Controller
$posts = Post::with('tags', 'topic')->published()->get();
$post = $posts->firstWhere('slug', $slug);

if ($post->published) {
if ($post && $post->published) {
$readNext = $posts->sortBy('published_at')->firstWhere('published_at', '>', $post->published_at);

if ($readNext) {
Expand Down

0 comments on commit 0302b81

Please sign in to comment.