mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-12-23 03:11:25 +00:00
Fix opengraph tags. Fixes #36
This commit is contained in:
parent
b8fdc5b594
commit
f9c0c72bb9
1 changed files with 3 additions and 1 deletions
|
@ -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