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

8 lines
169 B
TypeScript

import config from '../../../config';
export default (tag: string) => ({
type: 'Hashtag',
href: `${config.url}/tags/${encodeURIComponent(tag)}`,
name: '#' + tag
});