mirror of
https://codeberg.org/teddit/teddit
synced 2025-02-01 11:56:59 +01:00
check that subreddit_about exists (sometimes it might be null and referencing to the public_description_html will throw an error
This commit is contained in:
parent
1c9b125b70
commit
9e4ea80c7e
@ -3,7 +3,8 @@ html
|
|||||||
head
|
head
|
||||||
title /r/#{subreddit}
|
title /r/#{subreddit}
|
||||||
meta(property='og:title', content='/r/' + subreddit)
|
meta(property='og:title', content='/r/' + subreddit)
|
||||||
meta(property='og:description', content='' + unescape(subreddit_about.public_description_html, user_preferences))
|
if subreddit_about
|
||||||
|
meta(property='og:description', content='' + unescape(subreddit_about.public_description_html, user_preferences))
|
||||||
include includes/meta_default.pug
|
include includes/meta_default.pug
|
||||||
include includes/head.pug
|
include includes/head.pug
|
||||||
body(class=""+ (user_preferences.theme === 'auto' ? 'dark' : user_preferences.theme) + "")
|
body(class=""+ (user_preferences.theme === 'auto' ? 'dark' : user_preferences.theme) + "")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user