Tag functionality added

This commit is contained in:
Olaf
2026-08-24 20:42:15 +02:00
parent f96a4ab3ad
commit 2810fd914d
16 changed files with 448 additions and 18 deletions
+4 -1
View File
@@ -56,7 +56,10 @@ class MastodonPlugin(BasePlugin):
if post_prefix is None and config.get('hashtag'):
post_prefix = f'#{str(config["hashtag"]).strip().lstrip("#")} '
post_prefix = str(post_prefix if post_prefix is not None else DEFAULT_POST_PREFIX)
status_parts.append(f'{post_prefix}{event.get("url", "")}'.strip())
status = f'{post_prefix}{event.get("url", "")}'.strip()
if event.get('tags'):
status = f'{status} {" ".join(event["tags"])}'
status_parts.append(status)
try:
request = Request(