o76923,
@o76923@kitty.social avatar

Can someone tell me the URL to find the emoji manifest in #IceShrimp? Some equivalents are

Sharkey: /api/emojis
Pleroma: /api/v1/pleroma/emoji
Glitch-soc: /api/v1/custom_emojis

I know that such a file has to exist because emojos.in works correctly for void.rehab but I don't know enough #Rust to figure out where they're getting the path out of the server instance.

Kitty,
@Kitty@kitty.social avatar

@o76923 as much as I can tell, emojos.in just uses the mastodon-standard endpoint for emoji for literally anything:
void.rehab would be https://void.rehab/api/v1/custom_emojis

code from emojos.in src:

    let mut url = Url::from_str("https://host.invalid/api/v1/custom_emojis").unwrap();
    if url.set_host(Some(&instance)).is_err() {
        return Err(InstanceError::from_kind(Kind::NotFound, instance));
    }
...
            Kind::NotFound => {
                "Not a fediverse instance, or does not support the Mastodon custom emoji API"
            }
o76923,
@o76923@kitty.social avatar

@Kitty

Thank you. I don't think I've ever seen URL munging like that so I couldn't tell what was going on there.

santisbon,

@Kitty @o76923 that's correct and it should work on Akkoma, Bookwyrm, Cherrypick, Fedibird, Firefish, Foundkey, Friendica, GNUSocial, GotoSocial, Hometown, Hubzilla, Iceshrimp, Kbin, Lemmy, Mastodon, Microdotblog, Misskey, Mobilizon, Owncast, Peertube, Pixelfed, Pleroma, Plume, Takahē, and WordPress.

Here's where I do it on my server viewer:
github.com/santisbon/emojos/blob/40e5ba31b3387edcd642258caf073f80b934f5ad/api/src/handlers/get-emojis.mjs#L30

o76923,
@o76923@kitty.social avatar

@santisbon @Kitty

That's super handy and very useful to know. I've got some code to streamline.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • rust
  • DreamBathrooms
  • mdbf
  • InstantRegret
  • Durango
  • Youngstown
  • rosin
  • slotface
  • thenastyranch
  • osvaldo12
  • ngwrru68w68
  • kavyap
  • cisconetworking
  • khanakhh
  • magazineikmin
  • anitta
  • cubers
  • vwfavf
  • modclub
  • everett
  • ethstaker
  • normalnudes
  • tacticalgear
  • tester
  • provamag3
  • GTA5RPClips
  • Leos
  • megavids
  • JUstTest
  • All magazines