Skip to content

Commit

Permalink
One-Click Postage: Don't fallback to main blog on failure (#2138)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcustyphoon authored Oct 20, 2023
1 parent 13a0fa4 commit 458c2cf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Extensions/one_click_postage.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//* TITLE One-Click Postage **//
//* VERSION 4.4.23 **//
//* VERSION 4.4.24 **//
//* DESCRIPTION Lets you easily reblog, draft and queue posts **//
//* DEVELOPER new-xkit **//
//* FRAME false **//
Expand Down Expand Up @@ -1331,7 +1331,7 @@ XKit.extensions.one_click_postage = new Object({
if (kitty_data.errors === true) {
// We fucked up for some reason.
if (retry_mode !== true) {
this.process(data, state, form_key, "", post_id, caption, tags, reblog_key, m_button, true, root_id, quick_queue_mode);
this.process(data, state, form_key, blog_id, post_id, caption, tags, reblog_key, m_button, true, root_id, quick_queue_mode);
} else {
this.show_error(new Error("Kitty request failed!"), state);
}
Expand Down Expand Up @@ -1379,7 +1379,7 @@ XKit.extensions.one_click_postage = new Object({
})
.catch(error => {
if (error.status == 403 && !retry_mode) {
this.process(data, state, form_key, "", post_id, caption, tags, reblog_key, m_button, true, root_id, quick_queue_mode);
this.process(data, state, form_key, blog_id, post_id, caption, tags, reblog_key, m_button, true, root_id, quick_queue_mode);
return;
}

Expand Down

0 comments on commit 458c2cf

Please sign in to comment.