From 07281f69005b4c92486c37ef335323620f6a12cc Mon Sep 17 00:00:00 2001 From: fr33domlover Date: Thu, 16 May 2019 21:22:45 +0000 Subject: [PATCH] Fix infinite loop in ActivityPub audience parsing --- src/Web/ActivityPub.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Web/ActivityPub.hs b/src/Web/ActivityPub.hs index 4191871..68a54d9 100644 --- a/src/Web/ActivityPub.hs +++ b/src/Web/ActivityPub.hs @@ -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