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'),
|
SELECT TO_CHAR(message_date, 'Dy Mon DD HH:MI:SS AM TZ YYYY'),
|
||||||
visitor_name,
|
visitor_name,
|
||||||
message,
|
message,
|
||||||
homepage_url
|
homepage_url,
|
||||||
|
message_id
|
||||||
FROM messages
|
FROM messages
|
||||||
WHERE NOT is_spam
|
WHERE NOT is_spam
|
||||||
ORDER BY message_date DESC
|
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'),
|
SELECT TO_CHAR(message_date, 'Dy Mon DD HH:MI:SS AM TZ YYYY'),
|
||||||
visitor_name,
|
visitor_name,
|
||||||
message,
|
message,
|
||||||
homepage_url
|
homepage_url,
|
||||||
|
message_id
|
||||||
FROM messages
|
FROM messages
|
||||||
WHERE NOT is_spam
|
WHERE NOT is_spam
|
||||||
ORDER BY message_date DESC;
|
ORDER BY message_date DESC;
|
||||||
|
|
|
@ -16,6 +16,7 @@
|
||||||
<% } =%>
|
<% } =%>
|
||||||
</figcaption>
|
</figcaption>
|
||||||
</section>
|
</section>
|
||||||
|
<span hidden>Message ID: <%= @$post[4] %></span>
|
||||||
</article>
|
</article>
|
||||||
<% } =%>
|
<% } =%>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue