{"draft":null,"from":32,"to":33,"files":[{"path":"client/src/times.ts","added":4,"removed":8,"diff":"--- a/client/src/times.ts\n+++ b/client/src/times.ts\n@@ -1,6 +1,8 @@\n // When something happened, short and the same everywhere it's shown (abso\n // issue 124): \"08:34 UTC\" today, \"Oct 7 21:10 UTC\" before that.\n \n+import { newsShown } from \"./core.ts\";\n+\n const MONTHS = [\"Jan\", \"Feb\", \"Mar\", \"Apr\", \"May\", \"Jun\", \"Jul\", \"Aug\", \"Sep\", \"Oct\", \"Nov\", \"Dec\"];\n \n export function shortWhen(time: number, now: number = Date.now()): string {\n@@ -16,13 +18,7 @@\n \treturn seen === null ? \"new\" : `seen ${shortWhen(seen, now)}`;\n }\n \n-/**\n- * A news sentence with its time after the who: an announcement's after\n- * \"Announcement from <who> (<how>)\", any other at its end.\n- */\n+/** A news item as shown, with its time: a tell's after who told it, any other at its end. */\n export function newsWithTime(text: string, at: number | null, now: number = Date.now()): string {\n-\tif (at === null) return text;\n-\tconst time = shortWhen(at, now);\n-\tconst head = /^(Announcement from .+? \\([^)]*\\)): /.exec(text);\n-\treturn head ? `${head[1]}, ${time}: ${text.slice(head[0].length)}` : `${text} (${time})`;\n+\treturn newsShown(text, at === null ? undefined : shortWhen(at, now));\n }"}],"unmatched":[]}