HornsAndHooves-publify_core 10.3.0 → 10.4.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f4f225ec735acf20f2658a37d7e13e8b8c92a3e2a780a703d897521f701155c2
4
- data.tar.gz: 7a8e8155e071e1a9f6ab38979ae908a84f0ce7d10a9609dcad41317e519bd3bb
3
+ metadata.gz: dc399285f58305525d3598d5f95cd9690e8d44d3fc3ca499fd8652653ff8b0b0
4
+ data.tar.gz: 3043443be7e21bdbe4583832e397253defcef2af73169392de8fe7309890a9e0
5
5
  SHA512:
6
- metadata.gz: eedbbe4aea6485b4c8f4c6a7f001785969dd3908f8ffe52c71e23a799f200e0caa143894db3413743be0bc6270c88d61f2e48f41fc63084c73a9a193c8a0437c
7
- data.tar.gz: ebd68bee6aef3266eb0afc90cb8e7eed9072ce70e19bfb1b50b80a4373c09ba1325322cfd652e3e4c85253acc4ad7ded6b21a74643b32602b2d859d3524c1ea3
6
+ metadata.gz: 160da99f1802a128125fb4308b7e9d920191af3be554b8a76b0a7484c227b28e3ada3e3aa45a27b50487475a38fac04605b08710cafe0fd2a86a011c80d593e1
7
+ data.tar.gz: dfb5efba32da955399d1808484a5ff0ab1b158b4fdecee1a4745d4a1ea48b0d33cd10155e97525507190ab958cefbb3d3dd1547e5a0f245db9fc26b7eef660f5
@@ -104,7 +104,11 @@ class ArticlesController < ContentController
104
104
  r = Redirect.find_by(from_path: from)
105
105
  # TODO: If linked to article, directly redirect to the article.
106
106
  # Let redirection made outside of the blog on purpose (deal with it, Brakeman!)
107
- redirect_to r.full_to_path, status: :moved_permanently if r
107
+ if r
108
+ redirect_to r.full_to_path, status: :moved_permanently
109
+ else
110
+ render "errors/404", status: :not_found
111
+ end
108
112
  end
109
113
 
110
114
  def archives
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PublifyCore
4
- VERSION = "10.3.0"
4
+ VERSION = "10.4.0"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: HornsAndHooves-publify_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 10.3.0
4
+ version: 10.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matijs van Zuijlen
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2023-12-07 00:00:00.000000000 Z
14
+ date: 2023-12-12 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: aasm