Skip to content

Commit

Permalink
fix: hide meta tags from removed posts #68
Browse files Browse the repository at this point in the history
  • Loading branch information
CaramelKat committed Jul 29, 2024
1 parent 875a435 commit 60730f3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/webfiles/web/post.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -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 %>
Expand Down Expand Up @@ -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">
Expand Down

0 comments on commit 60730f3

Please sign in to comment.