Skip to content

Commit

Permalink
make Facebook preview icon conditional on the config parameter being …
Browse files Browse the repository at this point in the history
…defined

Make sure $LJ::FACEBOOK_PREVIEW_ICON is defined in the config before
trying to include it.  Also straightens the indentation of the
previous line.
  • Loading branch information
kareila committed Jun 18, 2016
1 parent 808953f commit f5ee8a1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cgi-bin/LJ/S2.pm
Expand Up @@ -2374,8 +2374,9 @@ sub Page
# other useful link rels
$p->{head_content} .= qq{<link rel="help" href="$LJ::SITEROOT/support/faq" />\n};
$p->{head_content} .= qq{<link rel="apple-touch-icon" href="$LJ::APPLE_TOUCH_ICON" />\n}
if $LJ::APPLE_TOUCH_ICON;
$p->{head_content} .= qq{<meta property="og:image" content="$LJ::FACEBOOK_PREVIEW_ICON"/>\n};
if $LJ::APPLE_TOUCH_ICON;
$p->{head_content} .= qq{<meta property="og:image" content="$LJ::FACEBOOK_PREVIEW_ICON"/>\n}
if $LJ::FACEBOOK_PREVIEW_ICON;
$p->{head_content} .= qq{<meta property="og:image:width" content="363"/>\n};
$p->{head_content} .= qq{<meta property="og:image:height" content="363"/>\n};
# Identity (type I) accounts only have read views
Expand Down

0 comments on commit f5ee8a1

Please sign in to comment.