A platform for community discussion. Free, open, simple.
FIX: don't wrap email log subject in a link if there's no link present (#36324)
Kris2b746af84369
diff --git a/frontend/discourse/admin/templates/admin-email-logs/received.gjs b/frontend/discourse/admin/templates/admin-email-logs/received.gjsindex 0f4fa22eab5..28324f8fbdf 100644--- a/frontend/discourse/admin/templates/admin-email-logs/received.gjs+++ b/frontend/discourse/admin/templates/admin-email-logs/received.gjs@@ -42,9 +42,13 @@ export default <template><td>{{emailLog.from_address}}</td><td>{{emailLog.to_addresses}}</td><td>- <a href={{emailLog.post_url}}>+ {{#if emailLog.post_url}}+ <a href={{emailLog.post_url}}>+ {{emailLog.subject}}+ </a>+ {{else}}{{emailLog.subject}}- </a>+ {{/if}}</td></tr></:default>