Skip to content

Commit

Permalink
revert changes, didnt work lol
Browse files Browse the repository at this point in the history
  • Loading branch information
Deutscher775 committed Nov 17, 2024
1 parent abc3929 commit 9c6e9eb
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -415,8 +415,6 @@ async def post_endpoint(
if suspend_status:
return fastapi.responses.JSONResponse(status_code=403, content={"message": "This endpoint is suspended."})

message_content = astroidapi.formatter.Format.format_urlsafe(message_content)

await astroidapi.endpoint_update_handler.UpdateHandler.update_endpoint(
endpoint=endpoint,
index=index,
Expand All @@ -443,7 +441,7 @@ async def post_endpoint(
message_reply_message=message_reply_message,
message_reply_author=message_reply_author,
message_author_id=message_author_id,
message_content=astroidapi.formatter.Format.unformat_urlsafe(message_content),
message_content=message_content,
message_attachments=message_attachments,
message_embed=message_embed,
selfuse=selfuse,
Expand Down

0 comments on commit 9c6e9eb

Please sign in to comment.