mirror of
https://gitlab.com/octtspacc/staticoso
synced 2025-06-05 22:09:23 +02:00
Allow meta description in ActivityPub posts
This commit is contained in:
@ -83,7 +83,10 @@ def MastodonShare(Flags:dict, Pages:list, Locale:dict):
|
|||||||
for Cat in Meta['Categories']:
|
for Cat in Meta['Categories']:
|
||||||
Hashtags += f' #{Cat.replace("-", "")}'
|
Hashtags += f' #{Cat.replace("-", "")}'
|
||||||
Hashtags = '\n\n' + Hashtags.strip()
|
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:
|
if not SaidPosting:
|
||||||
logging.info("Posting to Mastodon")
|
logging.info("Posting to Mastodon")
|
||||||
|
Reference in New Issue
Block a user