Make frg:isShared key property optional, it was accidentally required
This commit is contained in:
parent
0e0afa78f9
commit
9e881554ea
1 changed files with 1 additions and 1 deletions
|
@ -209,7 +209,7 @@ instance ActivityPub PublicKey where
|
||||||
when (t /= ("Key" :: Text)) $
|
when (t /= ("Key" :: Text)) $
|
||||||
fail "PublicKey @type isn't Key"
|
fail "PublicKey @type isn't Key"
|
||||||
(host, id_) <- f2l <$> (o .: "@id" <|> o .: "id")
|
(host, id_) <- f2l <$> (o .: "@id" <|> o .: "id")
|
||||||
shared <- o .: (frg <> "isShared") .!= False
|
shared <- o .:? (frg <> "isShared") .!= False
|
||||||
fmap (host,) $
|
fmap (host,) $
|
||||||
PublicKey id_
|
PublicKey id_
|
||||||
<$> o .:? "expires"
|
<$> o .:? "expires"
|
||||||
|
|
Loading…
Reference in a new issue