mirror of https://gitlab.com/bashrc2/epicyon
Merge branch 'main' of gitlab.com:bashrc2/epicyon
commit
36aff2d704
|
|
@ -108,8 +108,8 @@ def _htmlPostMetadataOpenGraph(domain: str, postJsonObject: {}) -> str:
|
||||||
metadata += \
|
metadata += \
|
||||||
" <meta content=\"" + objJson['published'] + \
|
" <meta content=\"" + objJson['published'] + \
|
||||||
"\" property=\"og:published_time\" />\n"
|
"\" property=\"og:published_time\" />\n"
|
||||||
if not objJson.get('attachment'):
|
if not objJson.get('attachment') or objJson.get('sensitive'):
|
||||||
if objJson.get('content'):
|
if objJson.get('content') and not objJson.get('sensitive'):
|
||||||
description = removeHtml(objJson['content'])
|
description = removeHtml(objJson['content'])
|
||||||
metadata += \
|
metadata += \
|
||||||
" <meta content=\"" + description + \
|
" <meta content=\"" + description + \
|
||||||
|
|
@ -137,7 +137,7 @@ def _htmlPostMetadataOpenGraph(domain: str, postJsonObject: {}) -> str:
|
||||||
elif attachJson['mediaType'].startswith('audio/'):
|
elif attachJson['mediaType'].startswith('audio/'):
|
||||||
description = 'Attached: 1 audio'
|
description = 'Attached: 1 audio'
|
||||||
if description:
|
if description:
|
||||||
if objJson.get('content'):
|
if objJson.get('content') and not objJson.get('sensitive'):
|
||||||
description += '\n\n' + removeHtml(objJson['content'])
|
description += '\n\n' + removeHtml(objJson['content'])
|
||||||
metadata += \
|
metadata += \
|
||||||
" <meta content=\"" + description + \
|
" <meta content=\"" + description + \
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue