mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-23 17:29:05 +01:00
wip
This commit is contained in:
parent
bddcd13f58
commit
07884a383e
@ -1,17 +1,7 @@
|
|||||||
import * as kue from 'kue';
|
import * as kue from 'kue';
|
||||||
|
|
||||||
import Channel from '../../models/channel';
|
import request from '../../../remote/request';
|
||||||
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> => {
|
export default async (job: kue.Job, done): Promise<void> => {
|
||||||
|
await request(job.data.user, job.data.to, job.data.content);
|
||||||
request(user, following.follower[0].account.inbox, create);
|
};
|
||||||
}
|
|
||||||
|
Loading…
Reference in New Issue
Block a user