[bug] API route /api/pleroma/emoji.json reports "Not implemented"; emoji picker is broken #466

Closed
opened 2023-02-15 02:09:39 +00:00 by ngoomie · 3 comments

Your setup

OTP

Extra details

Rocky Linux 9, nginx/1.20.1 (I know the form asks for this only when using source or Docker installs, but I figured it might be worth a mention anyways)

Version

BE 3.6.0-0-g71d0899, FE 9c9b4cc0, migrated from what was the most recent stable version of Pleroma as of roughly November 17th 2022

PostgreSQL version

13.7

What happened?

API route /api/pleroma/emoji.json simply reports "Not implemented", causing the emoji picker to not display any of my custom emojis. Custom emojis still functionally work if you know the shortcodes, and the Mastodon API still correctly reports the full emoji list.

This seems to have started, if you can believe it, after renewing my SSL certs with certbot caused the instance to break entirely, with the CSP policy suddenly causing violations that prevented Akkoma FE from loading, which I was later able to fix by stripping the CSP header Akkoma provides and instead providing my own via nginx. I'm decently certain this has nothing to do with the CSP policy issue though as I've thumbed through console output and do not receive any further CSP violations, especially not with relation to the emojis — at most it says that it has observed but not stopped Akkoma FE's service worker starting. I imagine this is likely an issue caused by me more than Akkoma itself, but I'm still creating an issue here because I've kinda exhausted any ability of mine to figure out and fix what's happening.

There do not appear to be any related serverside logs even with my loglevel set to :debug. I cannot personally think of any other relevant information to give, so please tell me if there's something I missed!

Severity

I cannot use it as easily as I'd like

Have you searched for this issue?

  • I have double-checked and have not found this issue mentioned anywhere.
### Your setup OTP ### Extra details Rocky Linux 9, nginx/1.20.1 (I know the form asks for this only when using source or Docker installs, but I figured it might be worth a mention anyways) ### Version BE 3.6.0-0-g71d0899, FE 9c9b4cc0, migrated from what was the most recent stable version of Pleroma as of roughly November 17th 2022 ### PostgreSQL version 13.7 ### What happened? API route `/api/pleroma/emoji.json` simply reports "Not implemented", causing the emoji picker to not display any of my custom emojis. Custom emojis still functionally work if you know the shortcodes, and [the Mastodon API](https://emojos.in/pl.hyperboreal.zone?show_all=true&show_animated=true) still correctly reports the full emoji list. This seems to have started, if you can believe it, after renewing my SSL certs with certbot caused the instance to break entirely, with the CSP policy suddenly causing violations that prevented Akkoma FE from loading, which I was later able to fix by [stripping the CSP header Akkoma provides and instead providing my own via nginx](https://pastebin.com/S16XWHFk). I'm decently certain this has nothing to do with the CSP policy issue though as I've thumbed through console output and do not receive any further CSP violations, especially not with relation to the emojis — at most it says that it has *observed* but not stopped Akkoma FE's service worker starting. I imagine this is likely an issue caused by me more than Akkoma itself, but I'm still creating an issue here because I've kinda exhausted any ability of mine to figure out and fix what's happening. There do not appear to be any related serverside logs even with my loglevel set to `:debug`. I cannot personally think of any other relevant information to give, so please tell me if there's something I missed! ### Severity I cannot use it as easily as I'd like ### Have you searched for this issue? - [x] I have double-checked and have not found this issue mentioned anywhere.
ngoomie added the
bug
label 2023-02-15 02:09:39 +00:00
Author

Oh yeah, I should maybe add how my emojis are added as well:

I have in {static}/emoji/custom a bunch of folders for different packs, with the individual packs being specified in my config.exs like this:

config :pleroma, :emoji,
  shortcode_globs: ["/emoji/custom/**/*.png", "/emoji/custom/**/*.gif"],
  groups: [
    Politics: ["/emoji/custom/politics/*", "/emoji/custom/main/acab.png", (...) "emoji/custom/main/blm.png"],

    Objects: ["/emoji/custom/objects/*", "/emoji/custom/main/air_tank.png", (...) "/emoji/custom/main/ipod.gif"],

    Hearts: ["/emoji/custom/hearts/*", "/emoji/custom/main/blacker_heart.png", (...) "/emoji/custom/main/bee_heart.png"],

    Thinking: ["/emoji/custom/thinking/*", "/emoji/custom/main/doublethink.png", (...) "/emoji/custom/main/think_a.png"],

    Gaming: ["/emoji/custom/games/*", "/emoji/custom/main/amy_dance.png", (...) "/emoji/custom/main/mario_x_sonic_otp.gif"],

    Programming: "/emoji/custom/programming/*",
    "Operating systems": "/emoji/custom/operating-systems/*",
    Fediverse: "/emoji/custom/fedi-software/*",
    Liru: "/emoji/custom/liru/*,
    Pokemon: "/emoji/custom/pokemon/*",
    Cats: "/emoji/custom/cats/*",
    Meta: "/emoji/custom/meta/*",
    Blobs: "/emoji/custom/blobs/*",
    Food: ["/emoji/custom/food/*", "/emoji/custom/main/ntt_beer.png"],
    Text: "/emoji/custom/text/*",
    Pride: "/emoji/custom/pride/*",
    Flags: "/emoji/custom/flags/*",
    Websites: "/emoji/custom/websites/*",
    Dogs: "/emoji/custom/dogs/*",
    Software: "/emoji/custom/software/*",
    People: "/emoji/custom/people/*",
    Clanspects: "/emoji/custom/clanspects/*",
    Custom: ["/emoji/custom/**/*.png", "/emoji/custom/**/*.gif"]
  ]

The 5 groups/packs at the top are ones I made at a later date after I already had emojis scattered across other folders that belonged in these categories — some of those lists are rather large so I've snipped all but the first and last individual emojis added to these categories and replaced them with (...) for space-saving reasons just for the purpose of sharing the conf snippet here.

Oh yeah, I should maybe add how my emojis are added as well: I have in `{static}/emoji/custom` a bunch of folders for different packs, with the individual packs being specified in my config.exs like this: ``` config :pleroma, :emoji, shortcode_globs: ["/emoji/custom/**/*.png", "/emoji/custom/**/*.gif"], groups: [ Politics: ["/emoji/custom/politics/*", "/emoji/custom/main/acab.png", (...) "emoji/custom/main/blm.png"], Objects: ["/emoji/custom/objects/*", "/emoji/custom/main/air_tank.png", (...) "/emoji/custom/main/ipod.gif"], Hearts: ["/emoji/custom/hearts/*", "/emoji/custom/main/blacker_heart.png", (...) "/emoji/custom/main/bee_heart.png"], Thinking: ["/emoji/custom/thinking/*", "/emoji/custom/main/doublethink.png", (...) "/emoji/custom/main/think_a.png"], Gaming: ["/emoji/custom/games/*", "/emoji/custom/main/amy_dance.png", (...) "/emoji/custom/main/mario_x_sonic_otp.gif"], Programming: "/emoji/custom/programming/*", "Operating systems": "/emoji/custom/operating-systems/*", Fediverse: "/emoji/custom/fedi-software/*", Liru: "/emoji/custom/liru/*, Pokemon: "/emoji/custom/pokemon/*", Cats: "/emoji/custom/cats/*", Meta: "/emoji/custom/meta/*", Blobs: "/emoji/custom/blobs/*", Food: ["/emoji/custom/food/*", "/emoji/custom/main/ntt_beer.png"], Text: "/emoji/custom/text/*", Pride: "/emoji/custom/pride/*", Flags: "/emoji/custom/flags/*", Websites: "/emoji/custom/websites/*", Dogs: "/emoji/custom/dogs/*", Software: "/emoji/custom/software/*", People: "/emoji/custom/people/*", Clanspects: "/emoji/custom/clanspects/*", Custom: ["/emoji/custom/**/*.png", "/emoji/custom/**/*.gif"] ] ``` The 5 groups/packs at the top are ones I made at a later date after I already had emojis scattered across other folders that belonged in these categories — some of those lists are rather large so I've snipped all but the first and last individual emojis added to these categories and replaced them with `(...)` for space-saving reasons just for the purpose of sharing the conf snippet here.

not a bug , check the changelog

not a bug , check the changelog
floatingghost added
not a bug
and removed
bug
labels 2023-02-15 08:44:45 +00:00
Author

Ah! Super sorry about that 🙇 dunno why I didn't think to check the changelog but I guess this'll be a good way to help me remember for future updates

Ah! Super sorry about that 🙇 dunno why I didn't think to check the changelog but I guess this'll be a good way to help me remember for future updates
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: AkkomaGang/akkoma#466
No description provided.