Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GIFs not embedding in Discord #493

Closed
angelfor3v3r opened this issue Oct 24, 2022 · 2 comments
Closed

GIFs not embedding in Discord #493

angelfor3v3r opened this issue Oct 24, 2022 · 2 comments

Comments

@angelfor3v3r
Copy link

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

System Info

  • PHP Version: 8.0.18
  • XBackBone Version: v3.6.0
  • Webserver: NGINX
  • Database backend: mariadb (10.9)

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
Copy link

ghost commented Dec 21, 2022

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
Copy link
Author

angelfor3v3r commented Dec 21, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant