Simplify some `modLink` calls
parent
4df390e817
commit
0218370535
|
@ -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)}"
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue