mirror of
https://0xacab.org/sutty/sutty
synced 2025-01-19 21:43:38 +00:00
Merge branch 'rails' into anonymous
This commit is contained in:
commit
19319d1ed8
1 changed files with 1 additions and 0 deletions
|
@ -53,6 +53,7 @@ PostService = Struct.new(:site, :usuarie, :post, :params, keyword_init: true) do
|
||||||
post = posts.find(uuid, uuid: true)
|
post = posts.find(uuid, uuid: true)
|
||||||
order = reorder[uuid].to_i
|
order = reorder[uuid].to_i
|
||||||
|
|
||||||
|
next unless post
|
||||||
next unless post.attributes.include? :order
|
next unless post.attributes.include? :order
|
||||||
next if post.order.value == order
|
next if post.order.value == order
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue