Make some more Account values optional

Fixes the multi-account functionality.
This commit is contained in:
Ryan Fox 2021-01-11 19:09:12 +00:00
parent 1506453fc0
commit b59ac87c81
Signed by: flewkey
GPG Key ID: 94F56ADFD848851E

View File

@ -77,17 +77,17 @@ accountDecoder =
Pipe.decode Account Pipe.decode Account
|> Pipe.required "acct" Decode.string |> Pipe.required "acct" Decode.string
|> Pipe.required "avatar" Decode.string |> Pipe.required "avatar" Decode.string
|> Pipe.required "avatar_static" Decode.string |> Pipe.optional "avatar_static" Decode.string ""
|> Pipe.required "created_at" Decode.string |> Pipe.required "created_at" Decode.string
|> Pipe.optional "last_status_at" Decode.string "" |> Pipe.optional "last_status_at" Decode.string ""
|> Pipe.required "display_name" Decode.string |> Pipe.required "display_name" Decode.string
|> Pipe.required "followers_count" Decode.int |> Pipe.required "followers_count" Decode.int
|> Pipe.required "following_count" Decode.int |> Pipe.required "following_count" Decode.int
|> Pipe.required "header" Decode.string |> Pipe.required "header" Decode.string
|> Pipe.required "header_static" Decode.string |> Pipe.optional "header_static" Decode.string ""
|> Pipe.required "id" idDecoder |> Pipe.required "id" idDecoder
|> Pipe.required "locked" Decode.bool |> Pipe.optional "locked" Decode.bool False
|> Pipe.required "bot" Decode.bool |> Pipe.optional "bot" Decode.bool False
|> Pipe.required "note" Decode.string |> Pipe.required "note" Decode.string
|> Pipe.required "statuses_count" Decode.int |> Pipe.required "statuses_count" Decode.int
|> Pipe.required "url" Decode.string |> Pipe.required "url" Decode.string