1
1
mirror of https://github.com/kokonect-link/cherrypick synced 2024-12-22 02:28:24 +09:00
cherrypick/src/queue/processors/http/deliver.ts

18 lines
727 B
TypeScript
Raw Normal View History

2018-04-04 23:12:35 +09:00
import * as kue from 'kue';
import Channel from '../../models/channel';
import Following from '../../models/following';
import ChannelWatching from '../../models/channel-watching';
import Post, { pack } from '../../models/post';
import User, { isLocalUser } from '../../models/user';
import stream, { publishChannelStream } from '../../publishers/stream';
import context from '../../remote/activitypub/renderer/context';
import renderCreate from '../../remote/activitypub/renderer/create';
import renderNote from '../../remote/activitypub/renderer/note';
import request from '../../remote/request';
export default async (job: kue.Job, done): Promise<void> => {
request(user, following.follower[0].account.inbox, create);
}