mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2025-01-29 19:06:22 -07:00
d94d32dad9
* 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
|
|
});
|
|
}
|