From 5ca4f944d5be56253f9feb6ce0fb6292a3e29e8b Mon Sep 17 00:00:00 2001 From: ghost Date: Fri, 26 Jan 2024 10:19:49 +0200 Subject: [PATCH] draft reply links --- src/controller/room.php | 8 ++++++++ src/view/post.gemini | 6 ++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/src/controller/room.php b/src/controller/room.php index c49878d..22e7a61 100644 --- a/src/controller/room.php +++ b/src/controller/room.php @@ -295,6 +295,7 @@ class Room '{author}', '{quote}', '{message}', + '{reply}', PHP_EOL . PHP_EOL ], [ @@ -307,6 +308,13 @@ class Room $this->_plain( $record['value'] ), + $this->_url( // @TODO + sprintf( + '/room/%s/reply/%s', + $namespace, + $record['txid'], + ) + ), PHP_EOL ], file_get_contents( diff --git a/src/view/post.gemini b/src/view/post.gemini index 1e6518c..396824f 100644 --- a/src/view/post.gemini +++ b/src/view/post.gemini @@ -1,9 +1,7 @@ -### {author} +### {author} [{time}] {quote} {message} -``` -{time} #{txid} -``` +=> {reply} Reply