forked from FoundKeyGang/FoundKey
refactor: remove default export for DbResolver
This commit is contained in:
parent
14a9b9bedd
commit
ae59ce51b0
11 changed files with 11 additions and 11 deletions
|
@ -45,7 +45,7 @@ export function parseUri(value: string | IObject): UriParseResult {
|
|||
}
|
||||
}
|
||||
|
||||
export default class DbResolver {
|
||||
export class DbResolver {
|
||||
constructor() {
|
||||
}
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@ import { CacheableRemoteUser } from '@/models/entities/user.js';
|
|||
import accept from '@/services/following/requests/accept.js';
|
||||
import { relayAccepted } from '@/services/relay.js';
|
||||
import { IFollow } from '@/remote/activitypub/type.js';
|
||||
import DbResolver from '@/remote/activitypub/db-resolver.js';
|
||||
import { DbResolver } from '@/remote/activitypub/db-resolver.js';
|
||||
|
||||
export default async (actor: CacheableRemoteUser, activity: IFollow): Promise<string> => {
|
||||
// ※ activityはこっちから投げたフォローリクエストなので、activity.actorは存在するローカルユーザーである必要がある
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import block from '@/services/blocking/create.js';
|
||||
import { CacheableRemoteUser } from '@/models/entities/user.js';
|
||||
import { Users } from '@/models/index.js';
|
||||
import DbResolver from '@/remote/activitypub/db-resolver.js';
|
||||
import { DbResolver } from '@/remote/activitypub/db-resolver.js';
|
||||
import { IBlock } from '@/remote/activitypub/type.js';
|
||||
|
||||
export default async (actor: CacheableRemoteUser, activity: IBlock): Promise<string> => {
|
||||
|
|
|
@ -2,7 +2,7 @@ import { CacheableRemoteUser } from '@/models/entities/user.js';
|
|||
import deleteNode from '@/services/note/delete.js';
|
||||
import { getApLock } from '@/misc/app-lock.js';
|
||||
import { deleteMessage } from '@/services/messages/delete.js';
|
||||
import DbResolver from '@/remote/activitypub/db-resolver.js';
|
||||
import { DbResolver } from '@/remote/activitypub/db-resolver.js';
|
||||
import { apLogger } from '@/remote/activitypub/logger.js';
|
||||
|
||||
export default async function(actor: CacheableRemoteUser, uri: string): Promise<string> {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import { CacheableRemoteUser } from '@/models/entities/user.js';
|
||||
import follow from '@/services/following/create.js';
|
||||
import { IFollow } from '../type.js';
|
||||
import DbResolver from '../db-resolver.js';
|
||||
import { DbResolver } from '../db-resolver.js';
|
||||
|
||||
export default async (actor: CacheableRemoteUser, activity: IFollow): Promise<string> => {
|
||||
const dbResolver = new DbResolver();
|
||||
|
|
|
@ -3,7 +3,7 @@ import { remoteReject } from '@/services/following/reject.js';
|
|||
import { relayRejected } from '@/services/relay.js';
|
||||
import { Users } from '@/models/index.js';
|
||||
import { IFollow } from '../../type.js';
|
||||
import DbResolver from '../../db-resolver.js';
|
||||
import { DbResolver } from '../../db-resolver.js';
|
||||
|
||||
export default async (actor: CacheableRemoteUser, activity: IFollow): Promise<string> => {
|
||||
// ※ activityはこっちから投げたフォローリクエストなので、activity.actorは存在するローカルユーザーである必要がある
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import unfollow from '@/services/following/delete.js';
|
||||
import { CacheableRemoteUser } from '@/models/entities/user.js';
|
||||
import { Followings } from '@/models/index.js';
|
||||
import DbResolver from '@/remote/activitypub/db-resolver.js';
|
||||
import { DbResolver } from '@/remote/activitypub/db-resolver.js';
|
||||
import { IAccept } from '@/remote/activitypub/type.js';
|
||||
|
||||
export default async (actor: CacheableRemoteUser, activity: IAccept): Promise<string> => {
|
||||
|
|
|
@ -2,7 +2,7 @@ import unblock from '@/services/blocking/delete.js';
|
|||
import { CacheableRemoteUser } from '@/models/entities/user.js';
|
||||
import { Users } from '@/models/index.js';
|
||||
import { IBlock } from '@/remote/activitypub/type.js';
|
||||
import DbResolver from '@/remote/activitypub/db-resolver.js';
|
||||
import { DbResolver } from '@/remote/activitypub/db-resolver.js';
|
||||
|
||||
export default async (actor: CacheableRemoteUser, activity: IBlock): Promise<string> => {
|
||||
const dbResolver = new DbResolver();
|
||||
|
|
|
@ -3,7 +3,7 @@ import cancelRequest from '@/services/following/requests/cancel.js';
|
|||
import { CacheableRemoteUser } from '@/models/entities/user.js';
|
||||
import { FollowRequests, Followings } from '@/models/index.js';
|
||||
import { IFollow } from '@/remote/activitypub/type.js';
|
||||
import DbResolver from '@/remote/activitypub/db-resolver.js';
|
||||
import { DbResolver } from '@/remote/activitypub/db-resolver.js';
|
||||
|
||||
export default async (actor: CacheableRemoteUser, activity: IFollow): Promise<string> => {
|
||||
const dbResolver = new DbResolver();
|
||||
|
|
|
@ -19,7 +19,7 @@ import { fromHtml } from '@/mfm/from-html.js';
|
|||
import { shouldBlockInstance } from '@/misc/should-block-instance.js';
|
||||
import { parseAudience } from '../audience.js';
|
||||
import { IObject, getOneApId, getApId, getOneApHrefNullable, validPost, IPost, isEmoji, getApType } from '../type.js';
|
||||
import DbResolver from '../db-resolver.js';
|
||||
import { DbResolver } from '../db-resolver.js';
|
||||
import Resolver from '../resolver.js';
|
||||
import { apLogger } from '../logger.js';
|
||||
import { resolvePerson } from './person.js';
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { createPerson } from '@/remote/activitypub/models/person.js';
|
||||
import { createNote } from '@/remote/activitypub/models/note.js';
|
||||
import DbResolver from '@/remote/activitypub/db-resolver.js';
|
||||
import { DbResolver } from '@/remote/activitypub/db-resolver.js';
|
||||
import Resolver from '@/remote/activitypub/resolver.js';
|
||||
import { extractDbHost } from '@/misc/convert-host.js';
|
||||
import { Users, Notes } from '@/models/index.js';
|
||||
|
|
Loading…
Reference in a new issue