mirror of
https://iceshrimp.dev/iceshrimp/iceshrimp
synced 2024-12-24 19:48:08 +09:00
1bc62d3fe4
* In Follow Accept/Reject, send previous received id * In Follow Accept/Reject, send Activity.actor
9 lines
215 B
TypeScript
9 lines
215 B
TypeScript
import config from '../../../config';
|
|
import { ILocalUser } from '../../../models/user';
|
|
|
|
export default (object: any, user: ILocalUser) => ({
|
|
type: 'Reject',
|
|
actor: `${config.url}/users/${user._id}`,
|
|
object
|
|
});
|