From e0777847a8d8993ff9606f3b6f2c87e42091e249 Mon Sep 17 00:00:00 2001 From: Ryan Fox Date: Fri, 15 Jan 2021 23:24:18 +0000 Subject: [PATCH] Make hashtag history optional in searches Fixes search on Pleroma. --- src/Mastodon/Decoder.elm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mastodon/Decoder.elm b/src/Mastodon/Decoder.elm index 7eeb467..cfeb401 100644 --- a/src/Mastodon/Decoder.elm +++ b/src/Mastodon/Decoder.elm @@ -204,7 +204,7 @@ hashtagDecoder = Pipe.decode Hashtag |> Pipe.required "name" Decode.string |> Pipe.required "url" Decode.string - |> Pipe.required "history" (Decode.list hashtagHistoryDecoder) + |> Pipe.optional "history" (Decode.list hashtagHistoryDecoder) [] searchResultsDecoder : Decode.Decoder SearchResults