Skip to content

GIFs not embedding in Discord #493

@angelfor3v3r

Description

@angelfor3v3r

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"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions