Follow

@Packbat@indiepocalypse.social yeah you'd just add a validation step in PostStatusService.call and the logic fur that---while i couldn't write right now off the top of my head---should be pretty simple. you might need a unicode/emoji library

if you look at fur example, PostStatusService.validate_media!, invoked at line 43, defined here, it just throws Mastodon::ValidationErrors (implicitly forcing post creation to fail) as required; you'd just do a check fur whether there’s a non-emoji and throw as needed

@Packbat@indiepocalypse.social i am assuming doing such a check is easy ofc but i can't imagine it wouldn't be

Sign in to participate in the conversation
📟🐱 GlitchCat

A small, community‐oriented Mastodon‐compatible Fediverse (GlitchSoc) instance managed as a joint venture between the cat and KIBI families.