Skip to content

Commit

Permalink
Merge pull request #35 from ItzNotABug/fix-image-caption-contains-nul…
Browse files Browse the repository at this point in the history
…l-as-text

Fix Image Caption Contains `null` as Text
  • Loading branch information
ItzNotABug authored Mar 10, 2024
2 parents 386ee47 + bb42345 commit cdbcda9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "ghosler",
"description": "Send newsletter emails to your members, using your own email credentials!",
"version": "0.91",
"version": "0.92",
"private": true,
"main": "app.js",
"type": "module",
Expand Down
5 changes: 4 additions & 1 deletion views/newsletter.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -993,7 +993,10 @@
style="border-radius: 5px; border: none; -ms-interpolation-mode: bicubic; max-width: 100%;"
width="600">
</td>
</tr><% if (post.featuredImageCaption) { %>
</tr>
<!-- I saw `null` as a text for `post.featuredImageCaption`, weird. -->
<% if (post.featuredImageCaption && post.featuredImageCaption.replace(/\s+/g, '') !== 'null') { %>
<tr>
<td align="center"
style="font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; vertical-align: top; width: 100%; padding-bottom: 30px; text-align: center; font-size: 13px; color: #738a94;"
Expand Down

0 comments on commit cdbcda9

Please sign in to comment.