From 27a6765bba7b41e90a30c390626860999fd668e4 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Sun, 20 Sep 2015 13:19:37 -0700 Subject: [PATCH] Simplify capcode code since all capcodes are now one-word. --- src/General/Build.coffee | 3 +-- src/General/html/Build/PostInfo.html | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/General/Build.coffee b/src/General/Build.coffee index 2cd49d9a1..c004d6692 100755 --- a/src/General/Build.coffee +++ b/src/General/Build.coffee @@ -100,8 +100,7 @@ Build = ### Post Info ### if capcode - capcodeUC = capcode.split(' ')[0] - capcodeLC = capcodeUC.toLowerCase() + capcodeLC = capcode.toLowerCase() if capcode is 'Founder' capcodePlural = 'the Founder' capcodeDescription = "4chan's Founder" diff --git a/src/General/html/Build/PostInfo.html b/src/General/html/Build/PostInfo.html index 75f7c383d..a5a63851b 100644 --- a/src/General/html/Build/PostInfo.html +++ b/src/General/html/Build/PostInfo.html @@ -1,14 +1,14 @@
?{!o.isReply || boardID === "f" || subject}{${subject || ""} } - + ?{email}{} ${name} ?{tripcode}{ ${tripcode}} ?{capcode}{ ## ${capcode}} ?{email}{} ?{boardID === "f" && !o.isReply || capcode}{}{ } - ?{capcode}{ ${capcodeUC} Icon} + ?{capcode}{ ${capcode} Icon} ?{uniqueID && !capcode}{ (ID: ${uniqueID})} ?{flagCode}{ }