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:
parent
b12ad49b62
commit
07281f6900
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue