mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-26 11:56:21 +00:00
feat: encontrar el post a editar desde su indexación #7537
This commit is contained in:
parent
6946e86a02
commit
ab98119cfe
1 changed files with 1 additions and 1 deletions
|
@ -160,7 +160,7 @@ class PostsController < ApplicationController
|
|||
end
|
||||
|
||||
def post
|
||||
@post ||= site.posts(lang: locale).find(params[:post_id] || params[:id])
|
||||
@post ||= site.indexed_posts.find_by!(locale: locale, path: params[:post_id] || params[:id]).post
|
||||
end
|
||||
|
||||
# Recuerda el nombre del servicio de subida de archivos
|
||||
|
|
Loading…
Reference in a new issue