More removal of PieFed's Markdown in outbound federation

Missed these the first time
This commit is contained in:
freamon 2024-06-02 20:53:37 +01:00
parent 07d52ae54e
commit ea93bfb432
2 changed files with 0 additions and 8 deletions

View file

@ -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()
],

View file

@ -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,