mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-02-10 08:18:25 -05:00
actually trim oversize og:description meta
This commit is contained in:
parent
88664afe14
commit
836d5c44b6
@ -434,6 +434,8 @@ def _calc_og(tree, media_uri):
|
|||||||
for el in _iterate_over_text(tree.find("body"), *TAGS_TO_REMOVE)
|
for el in _iterate_over_text(tree.find("body"), *TAGS_TO_REMOVE)
|
||||||
)
|
)
|
||||||
og['og:description'] = summarize_paragraphs(text_nodes)
|
og['og:description'] = summarize_paragraphs(text_nodes)
|
||||||
|
else:
|
||||||
|
og['og:description'] = summarize_paragraphs([og['og:description']])
|
||||||
|
|
||||||
# TODO: delete the url downloads to stop diskfilling,
|
# TODO: delete the url downloads to stop diskfilling,
|
||||||
# as we only ever cared about its OG
|
# as we only ever cared about its OG
|
||||||
|
Loading…
x
Reference in New Issue
Block a user