From 82707cf144262b297098ca678abf15aa28680473 Mon Sep 17 00:00:00 2001 From: Andy Neillans Date: Wed, 13 Dec 2023 18:48:02 +0000 Subject: [PATCH] Changed -1 to undefined on max chars --- electron-app/src/server/websites/aryion/aryion.service.ts | 2 +- electron-app/src/server/websites/custom/custom.service.ts | 2 +- .../src/server/websites/deviant-art/deviant-art.service.ts | 2 +- electron-app/src/server/websites/e621/e621.service.ts | 2 +- .../src/server/websites/fur-affinity/fur-affinity.service.ts | 2 +- electron-app/src/server/websites/furbooru/furbooru.service.ts | 2 +- .../src/server/websites/furry-network/furry-network.service.ts | 2 +- electron-app/src/server/websites/furtastic/furtastic.service.ts | 2 +- .../server/websites/hentai-foundry/hentai-foundry.service.ts | 2 +- electron-app/src/server/websites/inkbunny/inkbunny.service.ts | 2 +- electron-app/src/server/websites/ko-fi/ko-fi.service.ts | 2 +- electron-app/src/server/websites/manebooru/manebooru.service.ts | 2 +- .../src/server/websites/newgrounds/newgrounds.service.ts | 2 +- electron-app/src/server/websites/patreon/patreon.service.ts | 2 +- electron-app/src/server/websites/picarto/picarto.service.ts | 2 +- electron-app/src/server/websites/piczel/piczel.service.ts | 2 +- .../src/server/websites/pillowfort/pillowfort.service.ts | 2 +- electron-app/src/server/websites/pixiv/pixiv.service.ts | 2 +- electron-app/src/server/websites/so-furry/so-furry.service.ts | 2 +- .../subscribe-star-adult/subscribe-star-adult.service.ts | 2 +- .../server/websites/subscribe-star/subscribe-star.service.ts | 2 +- electron-app/src/server/websites/telegram/telegram.service.ts | 2 +- electron-app/src/server/websites/tumblr/tumblr.service.ts | 2 +- electron-app/src/server/websites/weasyl/weasyl.service.ts | 2 +- 24 files changed, 24 insertions(+), 24 deletions(-) diff --git a/electron-app/src/server/websites/aryion/aryion.service.ts b/electron-app/src/server/websites/aryion/aryion.service.ts index 869fc0b9..88004c6a 100644 --- a/electron-app/src/server/websites/aryion/aryion.service.ts +++ b/electron-app/src/server/websites/aryion/aryion.service.ts @@ -28,7 +28,7 @@ import { Website } from '../website.base'; @Injectable() export class Aryion extends Website { readonly BASE_URL = 'https://aryion.com'; - readonly MAX_CHARS: number = -1; // No limit + readonly MAX_CHARS: number = undefined; // No limit readonly defaultDescriptionParser = BBCodeParser.parse; readonly usernameShortcuts = [ { diff --git a/electron-app/src/server/websites/custom/custom.service.ts b/electron-app/src/server/websites/custom/custom.service.ts index 18dd004a..c705691e 100644 --- a/electron-app/src/server/websites/custom/custom.service.ts +++ b/electron-app/src/server/websites/custom/custom.service.ts @@ -24,7 +24,7 @@ import { Website } from '../website.base'; @Injectable() export class Custom extends Website { readonly BASE_URL: string = ''; - readonly MAX_CHARS: number = -1; // No limit + readonly MAX_CHARS: number = undefined; // No limit readonly acceptsFiles: string[] = []; // accepts all readonly acceptsAdditionalFiles: boolean = true; diff --git a/electron-app/src/server/websites/deviant-art/deviant-art.service.ts b/electron-app/src/server/websites/deviant-art/deviant-art.service.ts index 645fb8ab..988171ba 100644 --- a/electron-app/src/server/websites/deviant-art/deviant-art.service.ts +++ b/electron-app/src/server/websites/deviant-art/deviant-art.service.ts @@ -42,7 +42,7 @@ interface DeviantArtFolder { @Injectable() export class DeviantArt extends Website { readonly BASE_URL = 'https://www.deviantart.com'; - readonly MAX_CHARS: number = -1; // No Limit + readonly MAX_CHARS: number = undefined; // No Limit readonly acceptsFiles = [ 'jpeg', 'jpg', diff --git a/electron-app/src/server/websites/e621/e621.service.ts b/electron-app/src/server/websites/e621/e621.service.ts index f6b4b3b3..93650e59 100644 --- a/electron-app/src/server/websites/e621/e621.service.ts +++ b/electron-app/src/server/websites/e621/e621.service.ts @@ -29,7 +29,7 @@ import { Website } from '../website.base'; @Injectable() export class e621 extends Website { readonly BASE_URL: string = 'https://e621.net'; - readonly MAX_CHARS: number = -1; // No limit + readonly MAX_CHARS: number = undefined; // No limit readonly acceptsFiles: string[] = ['jpeg', 'jpg', 'png', 'gif', 'webm']; readonly acceptsSourceUrls: boolean = true; readonly defaultDescriptionParser = PlaintextParser.parse; diff --git a/electron-app/src/server/websites/fur-affinity/fur-affinity.service.ts b/electron-app/src/server/websites/fur-affinity/fur-affinity.service.ts index 707c8a13..1993e29c 100644 --- a/electron-app/src/server/websites/fur-affinity/fur-affinity.service.ts +++ b/electron-app/src/server/websites/fur-affinity/fur-affinity.service.ts @@ -36,7 +36,7 @@ import _ from 'lodash'; export class FurAffinity extends Website { readonly BASE_URL = 'https://www.furaffinity.net'; readonly waitBetweenPostsInterval = 70000; - readonly MAX_CHARS: number = -1; // No limit + readonly MAX_CHARS: number = undefined; // No limit readonly defaultDescriptionParser = BBCodeParser.parse; readonly usernameShortcuts = [ { diff --git a/electron-app/src/server/websites/furbooru/furbooru.service.ts b/electron-app/src/server/websites/furbooru/furbooru.service.ts index 903127ee..f038c1fa 100644 --- a/electron-app/src/server/websites/furbooru/furbooru.service.ts +++ b/electron-app/src/server/websites/furbooru/furbooru.service.ts @@ -28,7 +28,7 @@ import { Website } from '../website.base'; @Injectable() export class Furbooru extends Website { BASE_URL: string = 'https://furbooru.org'; - readonly MAX_CHARS: number = -1; // No Limit + readonly MAX_CHARS: number = undefined; // No Limit acceptsFiles: string[] = ['jpeg', 'jpg', 'png', 'svg', 'gif', 'webm']; acceptsSourceUrls: boolean = true; enableAdvertisement: boolean = false; diff --git a/electron-app/src/server/websites/furry-network/furry-network.service.ts b/electron-app/src/server/websites/furry-network/furry-network.service.ts index fabd8633..940422c0 100644 --- a/electron-app/src/server/websites/furry-network/furry-network.service.ts +++ b/electron-app/src/server/websites/furry-network/furry-network.service.ts @@ -35,7 +35,7 @@ import _ from 'lodash'; @Injectable() export class FurryNetwork extends Website { readonly BASE_URL: string = 'https://furrynetwork.com'; - readonly MAX_CHARS: number = -1; // No Limit + readonly MAX_CHARS: number = undefined; // No Limit readonly refreshBeforePost: boolean = true; readonly acceptsFiles: string[] = [ 'png', diff --git a/electron-app/src/server/websites/furtastic/furtastic.service.ts b/electron-app/src/server/websites/furtastic/furtastic.service.ts index 69d21ade..df1788e4 100644 --- a/electron-app/src/server/websites/furtastic/furtastic.service.ts +++ b/electron-app/src/server/websites/furtastic/furtastic.service.ts @@ -28,7 +28,7 @@ import { MarkdownParser } from 'src/server/description-parsing/markdown/markdown @Injectable() export class Furtastic extends Website { readonly BASE_URL: string = 'https://api.furtastic.art'; - readonly MAX_CHARS: number = -1; // No Limit + readonly MAX_CHARS: number = undefined; // No Limit readonly acceptsFiles: string[] = ['jpeg', 'jpg', 'png', 'gif', 'webm', 'pdf']; readonly defaultDescriptionParser = MarkdownParser.parse; readonly enableAdvertisement: boolean = true; diff --git a/electron-app/src/server/websites/hentai-foundry/hentai-foundry.service.ts b/electron-app/src/server/websites/hentai-foundry/hentai-foundry.service.ts index e88da37e..63ee7b48 100644 --- a/electron-app/src/server/websites/hentai-foundry/hentai-foundry.service.ts +++ b/electron-app/src/server/websites/hentai-foundry/hentai-foundry.service.ts @@ -29,7 +29,7 @@ import _ from 'lodash'; @Injectable() export class HentaiFoundry extends Website { readonly BASE_URL = 'https://www.hentai-foundry.com'; - readonly MAX_CHARS: number = -1; // No Limit + readonly MAX_CHARS: number = undefined; // No Limit readonly acceptsFiles = ['jpeg', 'jpg', 'png', 'svg', 'gif']; readonly defaultDescriptionParser = BBCodeParser.parse; readonly usernameShortcuts = [ diff --git a/electron-app/src/server/websites/inkbunny/inkbunny.service.ts b/electron-app/src/server/websites/inkbunny/inkbunny.service.ts index 5e44c3d5..14049b47 100644 --- a/electron-app/src/server/websites/inkbunny/inkbunny.service.ts +++ b/electron-app/src/server/websites/inkbunny/inkbunny.service.ts @@ -29,7 +29,7 @@ import { InkbunnyAccountData } from './inkbunny-account.interface'; @Injectable() export class Inkbunny extends Website { readonly BASE_URL: string = 'https://inkbunny.net'; - readonly MAX_CHARS: number = -1; // No Limit + readonly MAX_CHARS: number = undefined; // No Limit readonly acceptsFiles: string[] = [ 'png', 'jpeg', diff --git a/electron-app/src/server/websites/ko-fi/ko-fi.service.ts b/electron-app/src/server/websites/ko-fi/ko-fi.service.ts index f0a1b51a..98a307e6 100644 --- a/electron-app/src/server/websites/ko-fi/ko-fi.service.ts +++ b/electron-app/src/server/websites/ko-fi/ko-fi.service.ts @@ -29,7 +29,7 @@ import _ from 'lodash'; @Injectable() export class KoFi extends Website { readonly BASE_URL: string = 'https://ko-fi.com'; - readonly MAX_CHARS: number = -1; // No Limit + readonly MAX_CHARS: number = undefined; // No Limit readonly acceptsFiles: string[] = ['jpeg', 'jpg', 'png', 'gif']; readonly acceptsAdditionalFiles: boolean = true; diff --git a/electron-app/src/server/websites/manebooru/manebooru.service.ts b/electron-app/src/server/websites/manebooru/manebooru.service.ts index 066ae32c..fedb2f7a 100644 --- a/electron-app/src/server/websites/manebooru/manebooru.service.ts +++ b/electron-app/src/server/websites/manebooru/manebooru.service.ts @@ -28,7 +28,7 @@ import { Website } from '../website.base'; @Injectable() export class Manebooru extends Website { BASE_URL: string = 'https://manebooru.art'; - readonly MAX_CHARS: number = -1; // No Limit + readonly MAX_CHARS: number = undefined; // No Limit acceptsFiles: string[] = ['jpeg', 'jpg', 'png', 'svg', 'gif', 'webm']; acceptsSourceUrls: boolean = true; enableAdvertisement: boolean = false; diff --git a/electron-app/src/server/websites/newgrounds/newgrounds.service.ts b/electron-app/src/server/websites/newgrounds/newgrounds.service.ts index a4f85155..a98f54ad 100644 --- a/electron-app/src/server/websites/newgrounds/newgrounds.service.ts +++ b/electron-app/src/server/websites/newgrounds/newgrounds.service.ts @@ -42,7 +42,7 @@ type NewgroundsPostResponse = { export class Newgrounds extends Website { readonly BASE_URL: string = 'https://www.newgrounds.com'; readonly acceptsFiles = ['jpeg', 'jpg', 'png', 'gif', 'bmp']; - readonly MAX_CHARS: number = -1; // No Limit + readonly MAX_CHARS: number = undefined; // No Limit readonly usernameShortcuts = [ { key: 'ng', diff --git a/electron-app/src/server/websites/patreon/patreon.service.ts b/electron-app/src/server/websites/patreon/patreon.service.ts index ab9282fd..ffbac363 100644 --- a/electron-app/src/server/websites/patreon/patreon.service.ts +++ b/electron-app/src/server/websites/patreon/patreon.service.ts @@ -42,7 +42,7 @@ import Http from 'src/server/http/http.util'; export class Patreon extends Website { readonly BASE_URL = 'https://www.patreon.com'; readonly acceptsAdditionalFiles = true; - readonly MAX_CHARS: number = -1; // No Limit + readonly MAX_CHARS: number = undefined; // No Limit readonly refreshBeforePost: boolean = true; readonly waitBetweenPostsInterval = 90_000; readonly enableAdvertisement: boolean = false; diff --git a/electron-app/src/server/websites/picarto/picarto.service.ts b/electron-app/src/server/websites/picarto/picarto.service.ts index 9d8e8bc0..31b2650e 100644 --- a/electron-app/src/server/websites/picarto/picarto.service.ts +++ b/electron-app/src/server/websites/picarto/picarto.service.ts @@ -29,7 +29,7 @@ import { Website } from '../website.base'; export class Picarto extends Website { BASE_URL: string = 'https://picarto.tv'; acceptsFiles: string[] = ['jpeg', 'jpg', 'png', 'gif']; - readonly MAX_CHARS: number = -1; // No Limit + readonly MAX_CHARS: number = undefined; // No Limit acceptsAdditionalFiles: boolean = true; refreshBeforePost: boolean = true; readonly defaultDescriptionParser = PlaintextParser.parse; diff --git a/electron-app/src/server/websites/piczel/piczel.service.ts b/electron-app/src/server/websites/piczel/piczel.service.ts index 48d76a97..184cccaf 100644 --- a/electron-app/src/server/websites/piczel/piczel.service.ts +++ b/electron-app/src/server/websites/piczel/piczel.service.ts @@ -28,7 +28,7 @@ import { ScalingOptions } from '../interfaces/scaling-options.interface'; @Injectable() export class Piczel extends Website { readonly BASE_URL: string = 'https://piczel.tv'; - readonly MAX_CHARS: number = -1; // No Limit + readonly MAX_CHARS: number = undefined; // No Limit readonly acceptsFiles: string[] = ['png', 'jpeg', 'jpg', 'gif']; readonly acceptsAdditionalFiles: boolean = true; diff --git a/electron-app/src/server/websites/pillowfort/pillowfort.service.ts b/electron-app/src/server/websites/pillowfort/pillowfort.service.ts index a5a63b69..aa5d0902 100644 --- a/electron-app/src/server/websites/pillowfort/pillowfort.service.ts +++ b/electron-app/src/server/websites/pillowfort/pillowfort.service.ts @@ -34,7 +34,7 @@ import { Website } from '../website.base'; export class Pillowfort extends Website { readonly BASE_URL = 'https://www.pillowfort.social'; readonly acceptsAdditionalFiles = true; - readonly MAX_CHARS: number = -1; // No Limit + readonly MAX_CHARS: number = undefined; // No Limit readonly acceptsFiles = ['png', 'jpeg', 'jpg', 'gif']; readonly usernameShortcuts = [ { diff --git a/electron-app/src/server/websites/pixiv/pixiv.service.ts b/electron-app/src/server/websites/pixiv/pixiv.service.ts index ae312ac7..d7074c2e 100644 --- a/electron-app/src/server/websites/pixiv/pixiv.service.ts +++ b/electron-app/src/server/websites/pixiv/pixiv.service.ts @@ -36,7 +36,7 @@ import { Website } from '../website.base'; @Injectable() export class Pixiv extends Website { readonly BASE_URL = 'https://www.pixiv.net'; - readonly MAX_CHARS: number = -1; // No Limit + readonly MAX_CHARS: number = undefined; // No Limit readonly acceptsFiles = ['png', 'jpeg', 'jpg', 'gif']; readonly waitBetweenPostsInterval = 60_000 * 5; readonly defaultDescriptionParser = PlaintextParser.parse; diff --git a/electron-app/src/server/websites/so-furry/so-furry.service.ts b/electron-app/src/server/websites/so-furry/so-furry.service.ts index 48ad341c..22367eb3 100644 --- a/electron-app/src/server/websites/so-furry/so-furry.service.ts +++ b/electron-app/src/server/websites/so-furry/so-furry.service.ts @@ -38,7 +38,7 @@ import BrowserWindowUtil from 'src/server/utils/browser-window.util'; @Injectable() export class SoFurry extends Website { readonly BASE_URL: string = 'https://www.sofurry.com'; - readonly MAX_CHARS: number = -1; // No Limit + readonly MAX_CHARS: number = undefined; // No Limit readonly acceptsFiles: string[] = ['png', 'jpeg', 'jpg', 'gif', 'swf', 'txt', 'mp3', 'mp4']; readonly usernameShortcuts = [ { diff --git a/electron-app/src/server/websites/subscribe-star-adult/subscribe-star-adult.service.ts b/electron-app/src/server/websites/subscribe-star-adult/subscribe-star-adult.service.ts index d9fe74aa..2d84e4dd 100644 --- a/electron-app/src/server/websites/subscribe-star-adult/subscribe-star-adult.service.ts +++ b/electron-app/src/server/websites/subscribe-star-adult/subscribe-star-adult.service.ts @@ -36,7 +36,7 @@ import _ from 'lodash'; export class SubscribeStarAdult extends Website { readonly BASE_URL = 'https://www.subscribestar.adult'; readonly acceptsAdditionalFiles = true; - readonly MAX_CHARS: number = -1; // No Limit + readonly MAX_CHARS: number = undefined; // No Limit readonly enableAdvertisement: boolean = false; readonly usernameShortcuts = [ // { diff --git a/electron-app/src/server/websites/subscribe-star/subscribe-star.service.ts b/electron-app/src/server/websites/subscribe-star/subscribe-star.service.ts index 0945a852..c3e4abab 100644 --- a/electron-app/src/server/websites/subscribe-star/subscribe-star.service.ts +++ b/electron-app/src/server/websites/subscribe-star/subscribe-star.service.ts @@ -35,7 +35,7 @@ export class SubscribeStar extends Website { readonly BASE_URL = 'https://www.subscribestar.com'; readonly acceptsAdditionalFiles = true; readonly enableAdvertisement: boolean = false; - readonly MAX_CHARS: number = -1; // No Limit + readonly MAX_CHARS: number = undefined; // No Limit readonly usernameShortcuts = [ { key: 'ss', diff --git a/electron-app/src/server/websites/telegram/telegram.service.ts b/electron-app/src/server/websites/telegram/telegram.service.ts index 3177229b..829d3aa1 100644 --- a/electron-app/src/server/websites/telegram/telegram.service.ts +++ b/electron-app/src/server/websites/telegram/telegram.service.ts @@ -40,7 +40,7 @@ import _ = require('lodash'); export class Telegram extends Website { readonly BASE_URL: string; readonly acceptsFiles: string[] = []; - readonly MAX_CHARS: number = -1; // No Limit + readonly MAX_CHARS: number = undefined; // No Limit private readonly instances: Record = {}; private authData: Record = {}; public acceptsAdditionalFiles = true; diff --git a/electron-app/src/server/websites/tumblr/tumblr.service.ts b/electron-app/src/server/websites/tumblr/tumblr.service.ts index 4c3029d9..f836c812 100644 --- a/electron-app/src/server/websites/tumblr/tumblr.service.ts +++ b/electron-app/src/server/websites/tumblr/tumblr.service.ts @@ -33,7 +33,7 @@ export class Tumblr extends Website { readonly acceptsFiles = ['png', 'jpeg', 'jpg', 'gif', 'mp3', 'mp4']; readonly acceptsAdditionalFiles = true; readonly refreshInterval = 45 * 60000; - readonly MAX_CHARS: number = -1; // No Limit + readonly MAX_CHARS: number = undefined; // No Limit readonly usernameShortcuts = [ { key: 'tu', diff --git a/electron-app/src/server/websites/weasyl/weasyl.service.ts b/electron-app/src/server/websites/weasyl/weasyl.service.ts index 7ef1afb9..0b9477ee 100644 --- a/electron-app/src/server/websites/weasyl/weasyl.service.ts +++ b/electron-app/src/server/websites/weasyl/weasyl.service.ts @@ -33,7 +33,7 @@ import { ScalingOptions } from '../interfaces/scaling-options.interface'; @Injectable() export class Weasyl extends Website { readonly BASE_URL: string = 'https://www.weasyl.com'; - readonly MAX_CHARS: number = -1; // No Limit + readonly MAX_CHARS: number = undefined; // No Limit readonly acceptsFiles: string[] = ['jpg', 'jpeg', 'png', 'gif', 'md', 'txt', 'pdf', 'swf', 'mp3']; readonly usernameShortcuts = [ {