Adjust source link formatting.
This commit is contained in:
parent
624efba2d5
commit
b6b158580a
|
@ -161,7 +161,7 @@ class BotInstance:
|
|||
msg = self.bot_message
|
||||
if random.randint(0, 100) < 5:
|
||||
msg += " " + self.bot_hashtags
|
||||
create_note_request = requests.post(self.misskey_url + "notes/create", json = {"renoteId": post_json['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 = {"renoteId": post_json['id'], "text": "%s\n[Source](%s)\n" % (msg, image_src), "i": self.misskey_token})
|
||||
# If error, print error and exit
|
||||
if create_note_request.status_code != 200:
|
||||
print("Error: " + create_note_request.json()["error"]["message"], file=log_file)
|
||||
|
@ -171,7 +171,7 @@ class BotInstance:
|
|||
msg = self.bot_message
|
||||
if random.randint(0, 100) < 5:
|
||||
msg += " " + self.bot_hashtags
|
||||
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": "%s\n[Source](%s)\n" % (msg, image_src), "i": self.misskey_token})
|
||||
# If error, print error and exit
|
||||
if create_note_request.status_code != 200:
|
||||
print("Error: " + create_note_request.json()["error"]["message"], file=log_file)
|
||||
|
|
Loading…
Reference in New Issue