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 @@ -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]
),

2
src/view/post.gemini

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