From 3c8d9822c4739a0be1e975b55f3bb2b3dec2b567 Mon Sep 17 00:00:00 2001 From: ghost Date: Thu, 25 Jan 2024 21:44:10 +0200 Subject: [PATCH] add txid macros --- src/controller/room.php | 2 ++ src/view/post.gemini | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/controller/room.php b/src/controller/room.php index 6c94fd8..bd9057f 100644 --- a/src/controller/room.php +++ b/src/controller/room.php @@ -251,12 +251,14 @@ class Room // Build final view and send to response return str_replace( [ + '{txid}', '{time}', '{author}', '{quote}', '{message}', ], [ + $record['txid'], $this->_ago( $matches[1] ), diff --git a/src/view/post.gemini b/src/view/post.gemini index 74ee837..ce19208 100644 --- a/src/view/post.gemini +++ b/src/view/post.gemini @@ -2,5 +2,5 @@ > {quote} {message} ``` -{time} +{time} #{txid} ``` \ No newline at end of file