1
0
Fork 0
mirror of https://code.naskya.net/repos/ndqEd synced 2025-01-10 10:46:45 +09:00

Fix infinite loop in ActivityPub audience parsing

This commit is contained in:
fr33domlover 2019-05-16 21:22:45 +00:00
parent b12ad49b62
commit 07281f6900

View file

@ -350,7 +350,7 @@ newtype AdaptAudience = AdaptAudience
}
instance FromJSON AdaptAudience where
parseJSON = parseJSON . adapt
parseJSON = fmap AdaptAudience . parseJSON . adapt
where
adapt v =
case v of