Fix new format system bug.
This commit is contained in:
parent
8a321f4be2
commit
41d8a52d36
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue