Print message ID in hidden span to easily ID posts

This commit is contained in:
swagg boi 2022-01-11 22:13:33 -05:00
parent 706742a212
commit e69b3ea4c7
2 changed files with 5 additions and 2 deletions

View file

@ -23,7 +23,8 @@ sub get_posts($self, $this_page = undef) {
SELECT TO_CHAR(message_date, 'Dy Mon DD HH:MI:SS AM TZ YYYY'),
visitor_name,
message,
homepage_url
homepage_url,
message_id
FROM messages
WHERE NOT is_spam
ORDER BY message_date DESC
@ -35,7 +36,8 @@ sub get_posts($self, $this_page = undef) {
SELECT TO_CHAR(message_date, 'Dy Mon DD HH:MI:SS AM TZ YYYY'),
visitor_name,
message,
homepage_url
homepage_url,
message_id
FROM messages
WHERE NOT is_spam
ORDER BY message_date DESC;

View file

@ -16,6 +16,7 @@
<% } =%>
</figcaption>
</section>
<span hidden>Message ID: <%= @$post[4] %></span>
</article>
<% } =%>
</div>