monkeeShark/src/remote/activitypub/renderer/mention.ts
2018-06-13 05:11:55 +09:00

9 lines
172 B
TypeScript

export default (mention: {
uri: string;
username: string;
host: string;
}) => ({
type: 'Mention',
href: mention.uri,
name: `@${mention.username}@${mention.host}`
});