diff --git a/blog/controllers/PostController.lua b/blog/controllers/PostController.lua index 52ad80a..a9b5b39 100644 --- a/blog/controllers/PostController.lua +++ b/blog/controllers/PostController.lua @@ -94,7 +94,7 @@ function PostController:id(pid) return self:notfound("No post found") end data = data[1] - data.rendered = bytes.__tostring(std.b64decode(data.rendered)):gsub("%%", "%%%%") + data.rendered = data.rendered:gsub("%%", "%%%%") local a, b = data.rendered:find("<[Hh]1[^>]*>") if a then local c, d = data.rendered:find("[Hh]1>") diff --git a/blog/views/default/post/posts.ls b/blog/views/default/post/posts.ls index 2beb399..c63ed86 100644 --- a/blog/views/default/post/posts.ls +++ b/blog/views/default/post/posts.ls @@ -39,7 +39,7 @@