mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-23 19:36:56 -08:00
More removal of PieFed's Markdown in outbound federation
Missed these the first time
This commit is contained in:
parent
07d52ae54e
commit
ea93bfb432
2 changed files with 0 additions and 8 deletions
|
@ -38,10 +38,6 @@ def send_message(message: str, conversation_id: int) -> ChatMessage:
|
|||
"id": f"https://{current_app.config['SERVER_NAME']}/private_message/{reply.id}",
|
||||
"mediaType": "text/html",
|
||||
"published": utcnow().isoformat() + 'Z', # Lemmy is inconsistent with the date format they use
|
||||
"source": {
|
||||
"content": reply.body,
|
||||
"mediaType": "text/markdown"
|
||||
},
|
||||
"to": [
|
||||
recipient.profile_id()
|
||||
],
|
||||
|
|
|
@ -888,10 +888,6 @@ def federate_post(community, post):
|
|||
'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,
|
||||
|
|
Loading…
Reference in a new issue