user blogging WIP
parent
d4dc32f3c4
commit
5a3c5a45be
|
@ -389,9 +389,9 @@ memo {
|
|||
}
|
||||
picfit {
|
||||
collection = picfit_image
|
||||
secretKey = "qix8rozsRE6Rsw5uvBjwJUCFfQhyaKbR" # request signature
|
||||
endpointGet = "http://127.0.0.1:3001"
|
||||
endpointPost = "http://127.0.0.1:3001"
|
||||
secretKey = "qix8rozsRE6Rsw5uvBjwJUCFfQhyaKbR" # prod uses a different key
|
||||
}
|
||||
}
|
||||
redis {
|
||||
|
|
|
@ -36,6 +36,17 @@ object UblogPost {
|
|||
def slug = UblogPost slug title
|
||||
}
|
||||
|
||||
// case class PreviewPost(
|
||||
// _id: UblogPost.Id,
|
||||
// title: String,
|
||||
// intro: String,
|
||||
// image: Option[PicfitImage.Id],
|
||||
// liveAt: DateTime
|
||||
// ) {
|
||||
// def id = _id
|
||||
// def slug = UblogPost slug title
|
||||
// }
|
||||
|
||||
def slug(title: String) = {
|
||||
val s = lila.common.String slugify title
|
||||
if (s.isEmpty) "-" else s
|
||||
|
|
Loading…
Reference in New Issue