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 +4 -4
- data/app/controllers/articles_controller.rb +5 -1
- data/lib/publify_core/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dc399285f58305525d3598d5f95cd9690e8d44d3fc3ca499fd8652653ff8b0b0
|
4
|
+
data.tar.gz: 3043443be7e21bdbe4583832e397253defcef2af73169392de8fe7309890a9e0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
data/lib/publify_core/version.rb
CHANGED
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.
|
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-
|
14
|
+
date: 2023-12-12 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: aasm
|