misskey/src/remote/activitypub/renderer/undo.ts

9 lines
228 B
TypeScript
Raw Normal View History

2018-08-25 05:46:47 +00:00
import config from '../../../config';
import { ILocalUser, IUser } from "../../../models/user";
export default (object: any, user: ILocalUser | IUser) => ({
2018-04-03 08:18:06 +00:00
type: 'Undo',
2018-08-25 05:46:47 +00:00
actor: `${config.url}/users/${user._id}`,
2018-04-03 08:18:06 +00:00
object
});