mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-21 22:27:11 +00:00
Fix opengraph tags. Fixes #36
This commit is contained in:
parent
b8fdc5b594
commit
f9c0c72bb9
|
@ -43,7 +43,9 @@ server.get('/*', async (req, res) => {
|
|||
let site: GetSiteResponse = resolver[0];
|
||||
let routeData = resolver.slice(1, resolver.length);
|
||||
|
||||
let acceptLang = req.headers['accept-language'].split(',')[0];
|
||||
let acceptLang = req.headers['accept-language']
|
||||
? req.headers['accept-language'].split(',')[0]
|
||||
: 'en';
|
||||
let lang = !!site.my_user
|
||||
? site.my_user.lang == 'browser'
|
||||
? acceptLang
|
||||
|
|
Loading…
Reference in a new issue