Browse Source

add txid macros

main
ghost 10 months ago
parent
commit
3c8d9822c4
  1. 2
      src/controller/room.php
  2. 2
      src/view/post.gemini

2
src/controller/room.php

@ -251,12 +251,14 @@ class Room
// Build final view and send to response // Build final view and send to response
return str_replace( return str_replace(
[ [
'{txid}',
'{time}', '{time}',
'{author}', '{author}',
'{quote}', '{quote}',
'{message}', '{message}',
], ],
[ [
$record['txid'],
$this->_ago( $this->_ago(
$matches[1] $matches[1]
), ),

2
src/view/post.gemini

@ -2,5 +2,5 @@
> {quote} > {quote}
{message} {message}
``` ```
{time} {time} #{txid}
``` ```
Loading…
Cancel
Save