fix: hide meta tags from removed posts #68

This commit is contained in:
Jemma Poffinbarger
2024-07-29 12:22:53 -05:00
parent 875a435544
commit 60730f3d10

View File

@@ -2,6 +2,7 @@
<head>
<title>Post by <%= post.screen_name %></title>
<%- include('partials/head'); %>
<%if(!post.removed) {%>
<!-- Google / Search Engine Tags -->
<meta itemprop="name" content="<%= post.screen_name %> (@<%= postPNID.username %>) - <%= community.name %>">
<meta itemprop="description" content="<%= post.body %>
@@ -39,7 +40,7 @@
<meta name="twitter:image" content="https://pretendo-cdn.b-cdn.net/paintings/<%= post.pid %>/<%= post.id %>.png"/>
<%}%>
<meta name="twitter:creator" content="@PretendoNetwork"/>
<% } %>
</head>
<body>
<div id="main">