aboutsummaryrefslogtreecommitdiff
path: root/src/guff
diff options
context:
space:
mode:
Diffstat (limited to 'src/guff')
-rw-r--r--src/guff/models/post.cr16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/guff/models/post.cr b/src/guff/models/post.cr
index 3c4212b..560b36d 100644
--- a/src/guff/models/post.cr
+++ b/src/guff/models/post.cr
@@ -292,7 +292,7 @@ module Guff
template(:tag, {
"tag": @models.db.quote(tag),
})
- }.join(" INTERSECTS "),
+ }.join(" INTERSECT "),
})
}.join(" UNION "),
}) : NO_POSTS
@@ -342,13 +342,13 @@ module Guff
end
def update_post(
- site_id = nil : Int?,
- post_id = nil : Int?,
- slug = nil : String?,
- name = nil : String?,
- body = nil : String?,
- tags = nil : Array(String)?,
- posted = nil : Bool?
+ site_id = nil : Int?,
+ post_id = nil : Int?,
+ slug = nil : String?,
+ name = nil : String?,
+ body = nil : String?,
+ tags = nil : Array(String)?,
+ posted = nil : Bool?
)
raise "null post_id" if post_id.nil?