mirror of
https://iceshrimp.dev/iceshrimp/iceshrimp
synced 2024-12-26 04:28:06 +09:00
10 lines
215 B
TypeScript
10 lines
215 B
TypeScript
|
import config from '../../../config';
|
||
|
|
||
|
export default (user, post) => {
|
||
|
return {
|
||
|
type: 'Like',
|
||
|
actor: `${config.url}/@${user.username}`,
|
||
|
object: post.uri ? post.uri : `${config.url}/posts/${post._id}`
|
||
|
};
|
||
|
};
|