Print message ID in hidden span to easily ID posts
This commit is contained in:
parent
706742a212
commit
e69b3ea4c7
|
@ -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;
|
||||
|
|
|
@ -16,6 +16,7 @@
|
|||
<% } =%>
|
||||
</figcaption>
|
||||
</section>
|
||||
<span hidden>Message ID: <%= @$post[4] %></span>
|
||||
</article>
|
||||
<% } =%>
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue