mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-23 11:26:56 -08:00
remove incorrectly ussed summary
This commit is contained in:
parent
3a9b12584d
commit
56f5f0da4c
3 changed files with 2 additions and 3 deletions
|
@ -950,7 +950,6 @@ def comment_ap(comment_id):
|
|||
reply.author.followers_url()
|
||||
],
|
||||
'content': reply.body_html,
|
||||
'summary': markdown_to_text(reply.body),
|
||||
'mediaType': 'text/html',
|
||||
'published': ap_datetime(reply.created_at),
|
||||
'distinguished': False,
|
||||
|
|
|
@ -124,7 +124,6 @@ def post_to_activity(post: Post, community: Community):
|
|||
"name": post.title,
|
||||
"cc": [],
|
||||
"content": post.body_html,
|
||||
"summary": markdown_to_text(post.body),
|
||||
"mediaType": "text/html",
|
||||
"source": {
|
||||
"content": post.body,
|
||||
|
@ -134,6 +133,7 @@ def post_to_activity(post: Post, community: Community):
|
|||
"commentsEnabled": post.comments_enabled,
|
||||
"sensitive": post.nsfw or post.nsfl,
|
||||
"published": ap_datetime(post.created_at),
|
||||
"stickied": post.sticky,
|
||||
"audience": f"https://{current_app.config['SERVER_NAME']}/c/{community.name}"
|
||||
},
|
||||
"cc": [
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
],
|
||||
"theme_color": "#007BBF",
|
||||
"background_color": "#ffffff",
|
||||
"display": "minimal-ui",
|
||||
"display": "browser",
|
||||
"start_url": "/",
|
||||
"scope": "/"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue