mirror of
https://github.com/paricafe/misskey.git
synced 2024-11-25 23:36:44 -06:00
bceb02d760
* local only visibility * fix UI
17 lines
329 B
TypeScript
17 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
|
|
});
|
|
}
|