parent
c48cbd95f6
commit
80b5fda292
18 changed files with 193 additions and 24 deletions
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);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue