mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-25 06:53:09 +02:00
a1b490afa7
Closes #1411
9 lines
215 B
TypeScript
9 lines
215 B
TypeScript
import config from '../../../config';
|
|
|
|
export default (user, note) => {
|
|
return {
|
|
type: 'Like',
|
|
actor: `${config.url}/@${user.username}`,
|
|
object: note.uri ? note.uri : `${config.url}/notes/${note._id}`
|
|
};
|
|
};
|