sergix44 / XBackBone

A lightweight file manager with full ShareX support and more
https://xbackbone.app
GNU Affero General Public License v3.0
993 stars 81 forks source link

GIFs not embedding in Discord #493

Closed angelfor3v3r closed 1 year ago

angelfor3v3r commented 1 year ago

Hi. I'm new to XBackBone, so I apologize in advance if this is wrong or a configuration issue on my end.

System Info

Additional info: I'm using the LinuxServer.io container from here: Docker hub if that helps.

Describe the bug After uploading a GIF, copying the link (Default or Raw) and pasting it into Discord it will not embed properly and refuse to play the GIF (usually you can see a GIF overlay on the top right of GIF images in discord). The GIF will just display a single static frame.

"Embed images" in the system settings has no effect on this (it only removes the rich embed).

I can get it to embed properly if I modify the URL and go to "/raw.gif", but I'm not sure if there's a way to automate this or if it's intended behavior.

Here's some more examples to explain what I mean by the above sentence:

Notice the last link works fine and plays properly in discord. Not sure where this behaviour comes from but I wasn't able to find anything in the settings. But it would be nice if rich embeds worked.

Feel free to use my links for testing, I don't mind at all.

To Reproduce

  1. Upload a GIF to XBackBone
  2. Copy upload link
  3. Paste into discord

Expected behavior GIFs should embed and play properly in Discord.

Screenshots N/A, Can provide screenshots later if required.

Logs NGINX:

[REDACTED] - - [24/Oct/2022:16:20:20 -0400] "GET /hibe4/KeZoFofa90.gif HTTP/1.1" 200 9120 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:106.0) Gecko/20100101 Firefox/106.0"
[REDACTED] - - [24/Oct/2022:16:20:20 -0400] "GET /hibe4/KeZoFofa90.gif/raw HTTP/1.1" 200 4055905 "https://files.eccologic.net/hibe4/KeZoFofa90.gif" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:106.0) Gecko/20100101 Firefox/106.0"
[REDACTED] - - [24/Oct/2022:16:21:28 -0400] "GET /hibe4/KeZoFofa90/raw.gif HTTP/1.1" 200 4055905 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:106.0) Gecko/20100101 Firefox/106.0"
ghost commented 1 year ago
Logs
NGINX:

[REDACTED] - - [24/Oct/2022:16:20:20 -0400] "GET /hibe4/KeZoFofa90.gif HTTP/1.1" 200 9120 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:106.0) Gecko/20100101 Firefox/106.0"
[REDACTED] - - [24/Oct/2022:16:20:20 -0400] "GET /hibe4/KeZoFofa90.gif/raw HTTP/1.1" 200 4055905 "https://files.eccologic.net/hibe4/KeZoFofa90.gif" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:106.0) Gecko/20100101 Firefox/106.0"
[REDACTED] - - [24/Oct/2022:16:21:28 -0400] "GET /hibe4/KeZoFofa90/raw.gif HTTP/1.1" 200 4055905 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:106.0) Gecko/20100101 Firefox/106.0"

Don't really need to censor discord's preview/embed ips, they are already quite public.

angelfor3v3r commented 1 year ago

They're a reverse proxy IP and not relevant here.