rudeshark.net/src/remote/activitypub/renderer/mention.ts

10 lines
172 B
TypeScript
Raw Normal View History

2018-06-12 22:11:55 +02:00
export default (mention: {
uri: string;
username: string;
host: string;
}) => ({
type: 'Mention',
href: mention.uri,
name: `@${mention.username}@${mention.host}`
});