mirror of
https://gitlab.com/octtspacc/staticoso
synced 2025-03-12 09:10:13 +01:00
Allow meta description in ActivityPub posts
This commit is contained in:
parent
e33e8c8273
commit
1e07f92452
@ -83,7 +83,10 @@ def MastodonShare(Flags:dict, Pages:list, Locale:dict):
|
||||
for Cat in Meta['Categories']:
|
||||
Hashtags += f' #{Cat.replace("-", "")}'
|
||||
Hashtags = '\n\n' + Hashtags.strip()
|
||||
Desc = LimitText(HtmlParagraphsToText(ContentHTML, '\n'), NoteLimit - len(Read) - UrlLen - len(Hashtags))
|
||||
Desc = Meta['Description']
|
||||
if not Desc:
|
||||
Desc = HtmlParagraphsToText(ContentHTML, '\n')
|
||||
Desc = LimitText(Desc, NoteLimit - len(Read) - UrlLen - len(Hashtags))
|
||||
|
||||
if not SaidPosting:
|
||||
logging.info("Posting to Mastodon")
|
||||
|
Loading…
x
Reference in New Issue
Block a user