mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-23 19:36:56 -08:00
Only use HTML in Page JSON (for fetched, stickied, or old posts)
This commit is contained in:
parent
37b06ef43f
commit
dc2431fdd1
1 changed files with 0 additions and 8 deletions
|
@ -148,10 +148,6 @@ def post_to_activity(post: Post, community: Community):
|
|||
"cc": [],
|
||||
"content": post.body_html if post.body_html else '',
|
||||
"mediaType": "text/html",
|
||||
"source": {
|
||||
"content": post.body if post.body else '',
|
||||
"mediaType": "text/markdown"
|
||||
},
|
||||
"attachment": [],
|
||||
"commentsEnabled": post.comments_enabled,
|
||||
"sensitive": post.nsfw or post.nsfl,
|
||||
|
@ -200,10 +196,6 @@ def post_to_page(post: Post, community: Community):
|
|||
"cc": [],
|
||||
"content": post.body_html if post.body_html else '',
|
||||
"mediaType": "text/html",
|
||||
"source": {
|
||||
"content": post.body if post.body else '',
|
||||
"mediaType": "text/markdown"
|
||||
},
|
||||
"attachment": [],
|
||||
"commentsEnabled": post.comments_enabled,
|
||||
"sensitive": post.nsfw or post.nsfl,
|
||||
|
|
Loading…
Add table
Reference in a new issue