Fix new format system bug.

This commit is contained in:
dotnet 2023-10-13 19:26:58 -04:00
parent 8a321f4be2
commit 41d8a52d36
1 changed files with 1 additions and 1 deletions

View File

@ -220,7 +220,7 @@ class BotInstance:
# Submit a /notes/create request to Misskey
msg = self.format_message(image_src, image_url)
create_note_request = requests.post(self.misskey_url + "notes/create", json = {"fileIds": [file_id], "text": "%s\n[Source](%s)\n" % (msg, image_src), "i": self.misskey_token})
create_note_request = requests.post(self.misskey_url + "notes/create", json = {"fileIds": [file_id], "text": msg, "i": self.misskey_token})
# If error, print error and exit
if create_note_request.status_code != 200:
print(self.cfg_name + ": Error: ", file=log_file)