1
0
Fork 0
mirror of https://code.sup39.dev/repos/Wqawg synced 2025-01-15 04:25:10 +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