mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-03 11:26:14 +02:00
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