mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-27 04:17:51 -07:00
Refactor
This commit is contained in:
parent
cb9a950bd0
commit
ef21993199
8 changed files with 5 additions and 5 deletions
|
@ -5,7 +5,7 @@ const httpSignature = require('http-signature');
|
|||
import parseAcct from '../../../acct/parse';
|
||||
import User, { IRemoteUser } from '../../../models/user';
|
||||
import perform from '../../../remote/activitypub/perform';
|
||||
import { resolvePerson } from '../../../remote/activitypub/objects/person';
|
||||
import { resolvePerson } from '../../../remote/activitypub/models/person';
|
||||
|
||||
const log = debug('misskey:queue:inbox');
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@ import Resolver from '../../resolver';
|
|||
import post from '../../../../services/note/create';
|
||||
import { IRemoteUser } from '../../../../models/user';
|
||||
import { IAnnounce, INote } from '../../type';
|
||||
import { fetchNote, resolveNote } from '../../objects/note';
|
||||
import { fetchNote, resolveNote } from '../../models/note';
|
||||
|
||||
const log = debug('misskey:activitypub');
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { IRemoteUser } from '../../../../models/user';
|
||||
import { createImage } from '../../objects/image';
|
||||
import { createImage } from '../../models/image';
|
||||
|
||||
export default async function(actor: IRemoteUser, image): Promise<void> {
|
||||
await createImage(image.url, actor);
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import Resolver from '../../resolver';
|
||||
import { IRemoteUser } from '../../../../models/user';
|
||||
import { createNote, fetchNote } from '../../objects/note';
|
||||
import { createNote, fetchNote } from '../../models/note';
|
||||
|
||||
/**
|
||||
* 投稿作成アクティビティを捌きます
|
||||
|
|
|
@ -2,7 +2,7 @@ import { toUnicode, toASCII } from 'punycode';
|
|||
import User from '../models/user';
|
||||
import webFinger from './webfinger';
|
||||
import config from '../config';
|
||||
import { createPerson } from './activitypub/objects/person';
|
||||
import { createPerson } from './activitypub/models/person';
|
||||
|
||||
export default async (username, _host, option) => {
|
||||
const usernameLower = username.toLowerCase();
|
||||
|
|
Loading…
Reference in a new issue