Simplify some `modLink` calls

deepcrayonfish^2
kraktus 2021-12-10 11:16:35 +01:00 committed by Niklas Fiekas
parent 4df390e817
commit 0218370535
1 changed files with 2 additions and 2 deletions

View File

@ -38,7 +38,7 @@ final class IrcApi(
)
case Some(note) =>
zulip.sendAndGetLink(stream, "/" + user.username)(
s"${markdown.modLink(mod.user.username)} :pepenote: **${markdown
s"${markdown.modLink(mod.user)} :pepenote: **${markdown
.userLink(user.username)}** (${markdown.userNotesLink(user.username)}):\n" +
markdown.linkifyUsers(note.text take 2000)
)
@ -70,7 +70,7 @@ final class IrcApi(
def commlog(mod: Holder, user: User, reportBy: Option[User.ID]): Funit =
zulip(_.mod.adminLog, "private comms checks")({
val finalS = if (user.username endsWith "s") "" else "s"
s"**${markdown modLink mod.user.username}** checked out **${markdown userLink user.username}**'$finalS communications "
s"**${markdown modLink mod.user}** checked out **${markdown userLink user.username}**'$finalS communications "
} + reportBy.filter(mod.id !=).fold("spontaneously") { by =>
s"while investigating a report created by ${markdown.userLink(by)}"
})