Skip to content

Commit cdbcda9

Browse files
authored
Merge pull request #35 from ItzNotABug/fix-image-caption-contains-null-as-text
Fix Image Caption Contains `null` as Text
2 parents 386ee47 + bb42345 commit cdbcda9

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "ghosler",
33
"description": "Send newsletter emails to your members, using your own email credentials!",
4-
"version": "0.91",
4+
"version": "0.92",
55
"private": true,
66
"main": "app.js",
77
"type": "module",

views/newsletter.ejs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -993,7 +993,10 @@
993993
style="border-radius: 5px; border: none; -ms-interpolation-mode: bicubic; max-width: 100%;"
994994
width="600">
995995
</td>
996-
</tr><% if (post.featuredImageCaption) { %>
996+
</tr>
997+
998+
<!-- I saw `null` as a text for `post.featuredImageCaption`, weird. -->
999+
<% if (post.featuredImageCaption && post.featuredImageCaption.replace(/\s+/g, '') !== 'null') { %>
9971000
<tr>
9981001
<td align="center"
9991002
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;"

0 commit comments

Comments
 (0)