mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-23 04:33:50 +01:00
RENAME: api --> services
This commit is contained in:
parent
9f02eeac93
commit
7961ef33b2
@ -1,6 +1,6 @@
|
||||
import * as request from 'request-promise-native';
|
||||
import User from '../../../models/user';
|
||||
import createPost from '../../../api/post/create';
|
||||
import createPost from '../../../services/post/create';
|
||||
|
||||
export default async ({ data }) => {
|
||||
const asyncBot = User.findOne({ _id: data.userId });
|
||||
|
@ -3,8 +3,8 @@ import * as debug from 'debug';
|
||||
|
||||
import Resolver from '../resolver';
|
||||
import Post from '../../../models/post';
|
||||
import uploadFromUrl from '../../../api/drive/upload-from-url';
|
||||
import createPost from '../../../api/post/create';
|
||||
import uploadFromUrl from '../../../services/drive/upload-from-url';
|
||||
import createPost from '../../../services/post/create';
|
||||
import { IRemoteUser, isRemoteUser } from '../../../models/user';
|
||||
import resolvePerson from '../resolve-person';
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
import parseAcct from '../../../acct/parse';
|
||||
import User from '../../../models/user';
|
||||
import config from '../../../config';
|
||||
import follow from '../../../api/following/create';
|
||||
import follow from '../../../services/following/create';
|
||||
|
||||
export default async (actor, activity): Promise<void> => {
|
||||
const prefix = config.url + '/@';
|
||||
|
@ -1,7 +1,7 @@
|
||||
import parseAcct from '../../../acct/parse';
|
||||
import User from '../../../models/user';
|
||||
import config from '../../../config';
|
||||
import unfollow from '../../../api/following/delete';
|
||||
import unfollow from '../../../services/following/delete';
|
||||
|
||||
export default async (actor, activity): Promise<void> => {
|
||||
const prefix = config.url + '/@';
|
||||
|
@ -3,7 +3,7 @@ import { toUnicode } from 'punycode';
|
||||
import User, { validateUsername, isValidName, isValidDescription } from '../../models/user';
|
||||
import webFinger from '../webfinger';
|
||||
import Resolver from './resolver';
|
||||
import uploadFromUrl from '../../api/drive/upload-from-url';
|
||||
import uploadFromUrl from '../../services/drive/upload-from-url';
|
||||
|
||||
export default async (value, verifier?: string) => {
|
||||
const resolver = new Resolver();
|
||||
|
@ -4,7 +4,7 @@
|
||||
import $ from 'cafy';
|
||||
import User from '../../../../models/user';
|
||||
import Following from '../../../../models/following';
|
||||
import create from '../../../../api/following/create';
|
||||
import create from '../../../../services/following/create';
|
||||
|
||||
/**
|
||||
* Follow a user
|
||||
|
@ -7,7 +7,7 @@ import Post, { IPost, isValidText, isValidCw, pack } from '../../../../models/po
|
||||
import { ILocalUser } from '../../../../models/user';
|
||||
import Channel, { IChannel } from '../../../../models/channel';
|
||||
import DriveFile from '../../../../models/drive-file';
|
||||
import create from '../../../../api/post/create';
|
||||
import create from '../../../../services/post/create';
|
||||
import { IApp } from '../../../../models/app';
|
||||
|
||||
/**
|
||||
|
0
src/services/post/reaction/create.ts
Normal file
0
src/services/post/reaction/create.ts
Normal file
Loading…
Reference in New Issue
Block a user