mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-24 03:43:42 -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}",
|
"id": f"https://{current_app.config['SERVER_NAME']}/private_message/{reply.id}",
|
||||||
"mediaType": "text/html",
|
"mediaType": "text/html",
|
||||||
"published": utcnow().isoformat() + 'Z', # Lemmy is inconsistent with the date format they use
|
"published": utcnow().isoformat() + 'Z', # Lemmy is inconsistent with the date format they use
|
||||||
"source": {
|
|
||||||
"content": reply.body,
|
|
||||||
"mediaType": "text/markdown"
|
|
||||||
},
|
|
||||||
"to": [
|
"to": [
|
||||||
recipient.profile_id()
|
recipient.profile_id()
|
||||||
],
|
],
|
||||||
|
|
|
@ -888,10 +888,6 @@ def federate_post(community, post):
|
||||||
'cc': [],
|
'cc': [],
|
||||||
'content': post.body_html if post.body_html else '',
|
'content': post.body_html if post.body_html else '',
|
||||||
'mediaType': 'text/html',
|
'mediaType': 'text/html',
|
||||||
'source': {
|
|
||||||
'content': post.body if post.body else '',
|
|
||||||
'mediaType': 'text/markdown'
|
|
||||||
},
|
|
||||||
'attachment': [],
|
'attachment': [],
|
||||||
'commentsEnabled': post.comments_enabled,
|
'commentsEnabled': post.comments_enabled,
|
||||||
'sensitive': post.nsfw,
|
'sensitive': post.nsfw,
|
||||||
|
|
Loading…
Add table
Reference in a new issue