6
src/remote/activitypub/misc/get-emoji-names.ts
Normal file
6
src/remote/activitypub/misc/get-emoji-names.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
import parse from '../../../mfm/parse';
|
||||
|
||||
export default function(text: string) {
|
||||
if (!text) return [];
|
||||
return parse(text).filter(t => t.type === 'emoji').map(t => (t as any).emoji);
|
||||
}
|
Reference in New Issue
Block a user