@@ -818,8 +818,8 @@ userNotifyFeature ServerEnv{serverBaseURI, serverCron}
818
818
describeRevision users earlier now pkg
819
819
| pkgNumRevisions pkg <= 1 =
820
820
EmailContentParagraph $
821
- " Package upload, " <> renderPkgLink (pkgInfoId pkg) <> " , by " <>
822
- formatTimeUser users (pkgLatestUploadTime pkg) (pkgLatestUploadUser pkg)
821
+ " Package upload, " <> renderPkgLink (pkgInfoId pkg) <> " , by " <>
822
+ formatTimeUser users (pkgLatestUploadTime pkg) (pkgLatestUploadUser pkg)
823
823
| otherwise =
824
824
EmailContentParagraph (" Package metadata revision(s), " <> renderPkgLink (pkgInfoId pkg) <> " :" )
825
825
<> EmailContentList (map (uncurry (formatTimeUser users) . snd ) recentRevs)
@@ -875,25 +875,25 @@ userNotifyFeature ServerEnv{serverBaseURI, serverCron}
875
875
depVersion = emailContentDisplay (packageVersion dep)
876
876
in
877
877
foldMap EmailContentParagraph
878
- [ " The dependency " <> renderPkgLink dep <> " has been uploaded or revised."
879
- , case notifyDependencyTriggerBounds of
880
- Always ->
881
- " You have requested to be notified for each upload or revision \
882
- \of a dependency."
883
- _ ->
884
- " You have requested to be notified when a dependency isn't \
885
- \accepted by any of your maintained packages."
886
- , case notifyDependencyTriggerBounds of
887
- Always ->
888
- " These are your packages that depend on " <> depName <> " :"
889
- BoundsOutOfRange ->
890
- " These are your packages that require " <> depName
891
- <> " but don't accept " <> depVersion <> " :"
892
- NewIncompatibility ->
893
- " The following packages require " <> depName
894
- <> " but don't accept " <> depVersion
895
- <> " (they do accept the second-highest version):"
896
- ]
878
+ [ " The dependency " <> renderPkgLink dep <> " has been uploaded or revised."
879
+ , case notifyDependencyTriggerBounds of
880
+ Always ->
881
+ " You have requested to be notified for each upload or revision \
882
+ \of a dependency."
883
+ _ ->
884
+ " You have requested to be notified when a dependency isn't \
885
+ \accepted by any of your maintained packages."
886
+ , case notifyDependencyTriggerBounds of
887
+ Always ->
888
+ " These are your packages that depend on " <> depName <> " :"
889
+ BoundsOutOfRange ->
890
+ " These are your packages that require " <> depName
891
+ <> " but don't accept " <> depVersion <> " :"
892
+ NewIncompatibility ->
893
+ " The following packages require " <> depName
894
+ <> " but don't accept " <> depVersion
895
+ <> " (they do accept the second-highest version):"
896
+ ]
897
897
<> EmailContentList (map renderPkgLink revDeps)
898
898
899
899
sendNotifyEmailAndDelay :: Users. Users -> (UserId , (T. Text , EmailContent )) -> IO ()
@@ -919,13 +919,13 @@ userNotifyFeature ServerEnv{serverBaseURI, serverCron}
919
919
where
920
920
updatePreferencesText =
921
921
EmailContentParagraph $
922
- " You can adjust your notification preferences at" <> EmailContentSoftBreak
923
- <> emailContentUrl
924
- serverBaseURI
925
- { uriPath =
926
- concatMap (" /" <> )
927
- [ " user"
928
- , display $ Users. userIdToName users uid
929
- , " notify"
930
- ]
931
- }
922
+ " You can adjust your notification preferences at" <> EmailContentSoftBreak
923
+ <> emailContentUrl
924
+ serverBaseURI
925
+ { uriPath =
926
+ concatMap (" /" <> )
927
+ [ " user"
928
+ , display $ Users. userIdToName users uid
929
+ , " notify"
930
+ ]
931
+ }
0 commit comments