Tag functionality added
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user