diff --git a/conf/base.conf b/conf/base.conf index 37a07e5033..fc8a8d6a43 100644 --- a/conf/base.conf +++ b/conf/base.conf @@ -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 { diff --git a/modules/ublog/src/main/UblogPost.scala b/modules/ublog/src/main/UblogPost.scala index b6f03cab6e..4ea709edb3 100644 --- a/modules/ublog/src/main/UblogPost.scala +++ b/modules/ublog/src/main/UblogPost.scala @@ -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