Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: 禁止キーワードを含むノートがDelayed Queueに追加されて再処理される問題 #13428

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
lint: fix lint errors
anatawa12 committed Feb 21, 2024

Verified

This commit was signed with the committer’s verified signature.
anatawa12 anatawa12
commit c4c18dedbbc2a329c3cf578e0d2d33c9a51cb132
1 change: 1 addition & 0 deletions packages/backend/src/core/NoteCreateService.ts
Original file line number Diff line number Diff line change
@@ -59,6 +59,7 @@ import { UtilityService } from '@/core/UtilityService.js';
import { UserBlockingService } from '@/core/UserBlockingService.js';
import { isReply } from '@/misc/is-reply.js';
import { trackPromise } from '@/misc/promise-tracker.js';
import { IdentifiableError } from '@/misc/identifiable-error.js';

type NotificationType = 'reply' | 'renote' | 'quote' | 'mention';

2 changes: 1 addition & 1 deletion packages/backend/src/server/api/endpoints/notes/create.ts
Original file line number Diff line number Diff line change
@@ -19,8 +19,8 @@ import { DI } from '@/di-symbols.js';
import { isPureRenote } from '@/misc/is-pure-renote.js';
import { MetaService } from '@/core/MetaService.js';
import { UtilityService } from '@/core/UtilityService.js';
import { IdentifiableError } from '@/misc/identifiable-error.js';
import { ApiError } from '../../error.js';
import {IdentifiableError} from "@/misc/identifiable-error.js";

export const meta = {
tags: ['notes'],

Unchanged files with check annotations Beta

};
export function parse(acct: string): Acct {
if (acct.startsWith('@')) acct = acct.substring(1);

Check warning on line 7 in packages/misskey-js/src/acct.ts

GitHub Actions / lint (misskey-js)

Assignment to function parameter 'acct'
const split = acct.split('@', 2);
return { username: split[0], host: split[1] || null };
}
code: string;
message: string;
kind: 'client' | 'server';
info: Record<string, any>;

Check warning on line 17 in packages/misskey-js/src/api.ts

GitHub Actions / lint (misskey-js)

Unexpected any. Specify a different type
};
export function isAPIError(reason: Record<PropertyKey, unknown>): reason is APIError {
headers: { [key in string]: string }
}) => Promise<{
status: number;
json(): Promise<any>;

Check warning on line 32 in packages/misskey-js/src/api.ts

GitHub Actions / lint (misskey-js)

Unexpected any. Specify a different type
}>;
export class APIClient {
type IsCaseMatched<E extends keyof Endpoints, P extends Endpoints[E]['req'], C extends number> =
Endpoints[E]['res'] extends SwitchCase
? IsNeverType<StrictExtract<Endpoints[E]['res']['$switch']['$cases'][C], [P, any]>> extends false ? true : false

Check warning on line 30 in packages/misskey-js/src/api.types.ts

GitHub Actions / lint (misskey-js)

Unexpected any. Specify a different type
: false
type GetCaseResult<E extends keyof Endpoints, P extends Endpoints[E]['req'], C extends number> =
Endpoints[E]['res'] extends SwitchCase
? StrictExtract<Endpoints[E]['res']['$switch']['$cases'][C], [P, any]>[1]

Check warning on line 35 in packages/misskey-js/src/api.types.ts

GitHub Actions / lint (misskey-js)

Unexpected any. Specify a different type
: never
export type SwitchCaseResponseType<E extends keyof Endpoints, P extends Endpoints[E]['req']> = Endpoints[E]['res'] extends SwitchCase
export type ModerationLogPayloads = {
updateServerSettings: {
before: any | null;

Check warning on line 140 in packages/misskey-js/src/consts.ts

GitHub Actions / lint (misskey-js)

Unexpected any. Specify a different type
after: any | null;

Check warning on line 141 in packages/misskey-js/src/consts.ts

GitHub Actions / lint (misskey-js)

Unexpected any. Specify a different type
};
suspend: {
userId: string;
};
addCustomEmoji: {
emojiId: string;
emoji: any;

Check warning on line 162 in packages/misskey-js/src/consts.ts

GitHub Actions / lint (misskey-js)

Unexpected any. Specify a different type
};
updateCustomEmoji: {
emojiId: string;
before: any;

Check warning on line 166 in packages/misskey-js/src/consts.ts

GitHub Actions / lint (misskey-js)

Unexpected any. Specify a different type
after: any;

Check warning on line 167 in packages/misskey-js/src/consts.ts

GitHub Actions / lint (misskey-js)

Unexpected any. Specify a different type
};
deleteCustomEmoji: {
emojiId: string;