@@ -311,6 +311,7 @@ data PresentationInfo = PresentationInfo
311311 , presentationBackground :: Maybe PresentationBackground
312312 , presentationAttributes :: HMS. HashMap T. Text T. Text
313313 , presentationSlides :: [Slide ]
314+ , presentationDescription :: T. Text
314315 } deriving (Show , Eq )
315316
316317data PresentationResult = PresentationResult
@@ -327,7 +328,8 @@ instance FromJSONObject PresentationInfo where
327328 obj .: " owner_id" <*>
328329 obj .:? " background" <*>
329330 obj .:? " attributes" .!= HMS. empty <*>
330- obj .: " slides"
331+ obj .: " slides" <*>
332+ obj .: " description"
331333
332334instance FromJSONObject PresentationResult where
333335 parseJSONObject = undefined -- \obj ->
@@ -1245,11 +1247,10 @@ withPresentationFiles uname psname presentationInfo act = do
12451247 T. replace " {{DECKDECKGO_TITLE_SHORT}}" (T. take 12 $ unPresentationName pname) .
12461248 T. replace " {{DECKDECKGO_AUTHOR}}" (unUsername uname) .
12471249 T. replace " {{DECKDECKGO_USERNAME}}" (unUsername uname) .
1250+ T. replace " {{DECKDECKGO_DESCRIPTION}}" (presentationDescription presentationInfo) .
12481251 T. replace " {{DECKDECKGO_USER_ID}}"
12491252 (unFirebaseId . unUserId $ presentationOwner presentationInfo) .
12501253 T. replace " {{DECKDECKGO_DECKNAME}}" (unPresShortname psname) .
1251- -- TODO: description
1252- T. replace " {{DECKDECKGO_DESCRIPTION}}" " (no description given)" .
12531254 T. replace " {{DECKDECKGO_BASE_HREF}}"
12541255 (" /" <> unPresentationPrefix (presentationPrefix uname psname))
12551256
0 commit comments