1
0
mirror of https://github.com/misskey-dev/misskey synced 2024-12-18 08:38:52 +09:00
misskey/src/queue/index.ts
MeiMei bceb02d760 local only visibility (#3254)
* local only visibility

* fix UI
2018-11-16 05:47:29 +09:00

18 lines
329 B
TypeScript

import http from './processors/http';
import { ILocalUser } from '../models/user';
export function createHttpJob(data: any) {
return http({ data }, () => {});
}
export function deliver(user: ILocalUser, content: any, to: any) {
if (content == null) return;
createHttpJob({
type: 'deliver',
user,
content,
to
});
}