Refactor
This commit is contained in:
parent
3d276ab733
commit
aaa167fd57
@ -5,7 +5,7 @@ const httpSignature = require('http-signature');
|
|||||||
import parseAcct from '../../../acct/parse';
|
import parseAcct from '../../../acct/parse';
|
||||||
import User, { IRemoteUser } from '../../../models/user';
|
import User, { IRemoteUser } from '../../../models/user';
|
||||||
import perform from '../../../remote/activitypub/perform';
|
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');
|
const log = debug('misskey:queue:inbox');
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@ import Resolver from '../../resolver';
|
|||||||
import post from '../../../../services/note/create';
|
import post from '../../../../services/note/create';
|
||||||
import { IRemoteUser } from '../../../../models/user';
|
import { IRemoteUser } from '../../../../models/user';
|
||||||
import { IAnnounce, INote } from '../../type';
|
import { IAnnounce, INote } from '../../type';
|
||||||
import { fetchNote, resolveNote } from '../../objects/note';
|
import { fetchNote, resolveNote } from '../../models/note';
|
||||||
|
|
||||||
const log = debug('misskey:activitypub');
|
const log = debug('misskey:activitypub');
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { IRemoteUser } from '../../../../models/user';
|
import { IRemoteUser } from '../../../../models/user';
|
||||||
import { createImage } from '../../objects/image';
|
import { createImage } from '../../models/image';
|
||||||
|
|
||||||
export default async function(actor: IRemoteUser, image): Promise<void> {
|
export default async function(actor: IRemoteUser, image): Promise<void> {
|
||||||
await createImage(image.url, actor);
|
await createImage(image.url, actor);
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import Resolver from '../../resolver';
|
import Resolver from '../../resolver';
|
||||||
import { IRemoteUser } from '../../../../models/user';
|
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 User from '../models/user';
|
||||||
import webFinger from './webfinger';
|
import webFinger from './webfinger';
|
||||||
import config from '../config';
|
import config from '../config';
|
||||||
import { createPerson } from './activitypub/objects/person';
|
import { createPerson } from './activitypub/models/person';
|
||||||
|
|
||||||
export default async (username, _host, option) => {
|
export default async (username, _host, option) => {
|
||||||
const usernameLower = username.toLowerCase();
|
const usernameLower = username.toLowerCase();
|
||||||
|
Loading…
Reference in New Issue
Block a user