From d00569431bdfb9fd0689120572dc8fe3429b534f Mon Sep 17 00:00:00 2001 From: Shish Date: Fri, 9 Oct 2020 13:45:23 +0100 Subject: [PATCH] arrow format to link images in logs --- ext/log_db/main.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ext/log_db/main.php b/ext/log_db/main.php index 300e31ac..d09a82cd 100644 --- a/ext/log_db/main.php +++ b/ext/log_db/main.php @@ -170,12 +170,13 @@ class MessageColumn extends Column protected function scan_entities(string $line) { return preg_replace_callback("/Image #(\d+)/s", [$this, "link_image"], $line); + return preg_replace_callback("/>>(\d+)/s", [$this, "link_image"], $line); } protected function link_image($id) { $iid = int_escape($id[1]); - return "Image #$iid"; + return ">>$iid"; } }