Skip to content

Commit

Permalink
Merge pull request #80 from mvdicarlo/develop
Browse files Browse the repository at this point in the history
Start v3.0.44
  • Loading branch information
mvdicarlo authored Feb 28, 2022
2 parents d2edb41 + b84a332 commit ae277bd
Show file tree
Hide file tree
Showing 6 changed files with 23,986 additions and 188 deletions.
2 changes: 1 addition & 1 deletion electron-app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "postybirb-plus",
"version": "3.0.43",
"version": "3.0.44",
"description": "(ClientServer) PostyBirb is an application that helps artists post art and other multimedia to multiple websites more quickly.",
"main": "dist/main.js",
"author": "Michael DiCarlo",
Expand Down
18 changes: 0 additions & 18 deletions electron-app/src/server/websites/itaku/itaku.controller.spec.ts

This file was deleted.

24 changes: 11 additions & 13 deletions electron-app/src/server/websites/itaku/itaku.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,20 @@ import {
} from 'postybirb-commons';
import UserAccountEntity from 'src/server/account/models/user-account.entity';
import { PlaintextParser } from 'src/server/description-parsing/plaintext/plaintext.parser';
import ImageManipulator from 'src/server/file-manipulation/manipulators/image.manipulator';
import Http from 'src/server/http/http.util';
import { CancellationToken } from 'src/server/submission/post/cancellation/cancellation-token';
import { FilePostData } from 'src/server/submission/post/interfaces/file-post-data.interface';
import { PostData } from 'src/server/submission/post/interfaces/post-data.interface';
import { ValidationParts } from 'src/server/submission/validator/interfaces/validation-parts.interface';
import BrowserWindowUtil from 'src/server/utils/browser-window.util';
import FileSize from 'src/server/utils/filesize.util';
import FormContent from 'src/server/utils/form-content.util';
import WebsiteValidator from 'src/server/utils/website-validator.util';
import { GenericAccountProp } from '../generic/generic-account-props.enum';
import { LoginResponse } from '../interfaces/login-response.interface';
import { ScalingOptions } from '../interfaces/scaling-options.interface';
import { Website } from '../website.base';
import _ = require('lodash');
import { GenericAccountProp } from '../generic/generic-account-props.enum';
import { PostData } from 'src/server/submission/post/interfaces/post-data.interface';

@Injectable()
export class Itaku extends Website {
Expand Down Expand Up @@ -96,18 +95,17 @@ export class Itaku extends Website {
}));
this.storeAccountInformation(id, `POST-${GenericAccountProp.FOLDERS}`, postFolders);

const galleryFolderRes = await Http.get<{ id: string; num_images: number; title: string }[]>(
`${this.BASE_URL}/api/galleries/?owner=${ownerId}`,
id,
{
requestOptions: { json: true },
headers: {
Authorization: `Token ${this.getAccountInfo(id, 'token')}`,
},
const galleryFolderRes = await Http.get<{
count: number;
results: { id: string; num_images: number; title: string }[];
}>(`${this.BASE_URL}/api/galleries/?owner=${ownerId}&page_size=300`, id, {
requestOptions: { json: true },
headers: {
Authorization: `Token ${this.getAccountInfo(id, 'token')}`,
},
);
});

const galleryFolders: Folder[] = galleryFolderRes.body.map((f) => ({
const galleryFolders: Folder[] = galleryFolderRes.body.results.map((f) => ({
value: f.title,
label: f.title,
}));
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "postybirb-plus",
"version": "3.0.43",
"version": "3.0.44",
"description": "PostyBirb is an application that helps artists post art and other multimedia to multiple websites more quickly..",
"main": "index.js",
"scripts": {
Expand Down
Loading

0 comments on commit ae277bd

Please sign in to comment.