diff options
author | Alexander Foremny <aforemny@posteo.de> | 2023-12-13 03:47:14 +0100 |
---|---|---|
committer | Alexander Foremny <aforemny@posteo.de> | 2023-12-13 04:50:01 +0100 |
commit | 2bbd2f8b692dd952903a9f1527f2779a916118ab (patch) | |
tree | 0ab292e196327f719a2e953bdaac70cf3be9abb5 /app/Issue | |
parent | 4426863f07901f626a537f2f0bb717b1bd1b0f6d (diff) |
chore: uncache large issue fields
Diffstat (limited to 'app/Issue')
-rw-r--r-- | app/Issue/Render.hs | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/app/Issue/Render.hs b/app/Issue/Render.hs index c8a913b..aca8134 100644 --- a/app/Issue/Render.hs +++ b/app/Issue/Render.hs @@ -42,8 +42,10 @@ newtype IssueDescription = IssueDescription {unIssueDescription :: Issue} instance P.Render IssueDescription where render (IssueDescription issue) = - maybe P.emptyDoc (P.render . N.toList) $ - issue.description + P.render + ( maybe P.emptyDoc (P.render . N.toList) + <$> issue.description + ) instance P.Render (P.Linked Issue) where render (P.Linked issue) @@ -71,8 +73,10 @@ newtype IssueComments = IssueComments {unIssueComments :: Issue} instance P.Render IssueComments where render (IssueComments issue) = - maybe P.emptyDoc (P.vsep . map P.render . N.toList) $ - issue.comments + P.render + ( maybe P.emptyDoc (P.vsep . map P.render . N.toList) + <$> issue.comments + ) newtype IssueOpenedBy = IssueOpenedBy {unIssueOpenedBy :: Issue} |