mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-23 19:36: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()
|
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,
|
||||||
|
|
|
@ -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": [
|
||||||
|
|
|
@ -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": "/"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue