Skip to content

Commit

Permalink
Start v1.2.8
Browse files Browse the repository at this point in the history
Fix FA posting for legacy users
  • Loading branch information
mvdicarlo committed Mar 16, 2020
1 parent 3517f39 commit eeb6cf2
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion electron/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ app.on('ready', () => {
if (!process.env.DEVELOP) {
const enabled = createDB('postybirb').get('autoUpdate').value();
const isEnabled = enabled === undefined ? true : enabled;
if (!isEnabled) {
if (enabled === undefined || enabled === true) {
autoUpdater.checkForUpdates();
}
}
Expand Down
2 changes: 1 addition & 1 deletion electron/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "PostyBirb",
"version": "1.2.7",
"version": "1.2.8",
"description": "Multimedia crossposter for multimedia websites",
"main": "main.js",
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "postybirb",
"description": "Multimedia crossposter for multimedia websites",
"version": "1.2.7",
"version": "1.2.8",
"author": "Michael DiCarlo (Lemonynade)",
"license": "BSD-3-Clause",
"homepage": "https://bitbucket.org/Michael_DiCarlo/postybirb-angular#readme",
Expand Down Expand Up @@ -41,7 +41,7 @@
"@ngx-translate/core": "^10.0.2",
"@ngx-translate/http-loader": "^3.0.1",
"@ngxs/store": "^3.3.2",
"angular2-hotkeys": "^2.1.4",
"angular2-hotkeys": "~2.1.4",
"animate.css": "^3.6.1",
"bootstrap": "^4.0.0",
"core-js": "^2.5.4",
Expand Down
6 changes: 3 additions & 3 deletions src/app/commons/models/website/furaffinity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ export class Furaffinity extends BaseWebsite implements Website {
}

const uploadForm = new FormData();
uploadForm.set('key', HTMLParser.getInputValue(fileSubmitPage, 'key'));
uploadForm.set('key', HTMLParser.getInputValue(fileSubmitPage.split('action="/submit/"').pop(), 'key'));
uploadForm.set('part', '3');

uploadForm.set('submission', submission.submissionData.submissionFile.getRealFile());
Expand Down Expand Up @@ -142,7 +142,7 @@ export class Furaffinity extends BaseWebsite implements Website {
const options = submission.options;

submitForm.set('part', '5');
submitForm.set('key', HTMLParser.getInputValue(uploadPage, 'key'));
submitForm.set('key', HTMLParser.getInputValue(uploadPage.split('action="/submit/"').pop(), 'key'));

//Primary
submitForm.set('title', submission.submissionData.title);
Expand Down Expand Up @@ -210,7 +210,7 @@ export class Furaffinity extends BaseWebsite implements Website {
this.http.get(`${this.baseURL}/controls/journal`, { responseType: 'text' })
.subscribe(page => {
const journalData = new FormData();
journalData.set('key', HTMLParser.getInputValue(page, 'key'));
journalData.set('key', HTMLParser.getInputValue(page.split('action="/controls/journal/"').pop(), 'key'));
journalData.set('message', data.description);
journalData.set('subject', data.title);
journalData.set('submit', 'Create / Update Journal');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export class SubmissionSettingsDialogComponent implements OnDestroy {

public isAutoUpdateOn(): boolean {
const enabled = db.get('autoUpdate').value();
return enabled === undefined ? true : enabled;
return enabled === undefined || enabled === true;
}

public toggleAutoUpdate(event: any): void {
Expand Down

0 comments on commit eeb6cf2

Please sign in to comment.