remove incorrectly ussed summary

This commit is contained in:
rimu 2024-02-11 20:29:58 +13:00
parent 3a9b12584d
commit 56f5f0da4c
3 changed files with 2 additions and 3 deletions

View file

@ -950,7 +950,6 @@ def comment_ap(comment_id):
reply.author.followers_url() reply.author.followers_url()
], ],
'content': reply.body_html, 'content': reply.body_html,
'summary': markdown_to_text(reply.body),
'mediaType': 'text/html', 'mediaType': 'text/html',
'published': ap_datetime(reply.created_at), 'published': ap_datetime(reply.created_at),
'distinguished': False, 'distinguished': False,

View file

@ -124,7 +124,6 @@ def post_to_activity(post: Post, community: Community):
"name": post.title, "name": post.title,
"cc": [], "cc": [],
"content": post.body_html, "content": post.body_html,
"summary": markdown_to_text(post.body),
"mediaType": "text/html", "mediaType": "text/html",
"source": { "source": {
"content": post.body, "content": post.body,
@ -134,6 +133,7 @@ def post_to_activity(post: Post, community: Community):
"commentsEnabled": post.comments_enabled, "commentsEnabled": post.comments_enabled,
"sensitive": post.nsfw or post.nsfl, "sensitive": post.nsfw or post.nsfl,
"published": ap_datetime(post.created_at), "published": ap_datetime(post.created_at),
"stickied": post.sticky,
"audience": f"https://{current_app.config['SERVER_NAME']}/c/{community.name}" "audience": f"https://{current_app.config['SERVER_NAME']}/c/{community.name}"
}, },
"cc": [ "cc": [

View file

@ -15,7 +15,7 @@
], ],
"theme_color": "#007BBF", "theme_color": "#007BBF",
"background_color": "#ffffff", "background_color": "#ffffff",
"display": "minimal-ui", "display": "browser",
"start_url": "/", "start_url": "/",
"scope": "/" "scope": "/"
} }