discord no longer embedding
System Info
- PHP Version: 7.4
- XBackBone Version: 3.5.0
- Webserver: [Apache/Nginx/...] https://www.litespeedtech.com/
- Database backend: [SQLite/Mysql/...] sqlite
Describe the bug Discord is no longer embedding images that are sent UNLESS "/raw" is appended to the image or the "embed images" option is on
To Reproduce Steps to reproduce the behavior:
- Upload an image using xbackbone
- Post it to discord
- Watch it not embed
Expected behavior The image to actually embed
Screenshots
https://iphqne.com/-/SiLo9/jaYaLOmA74.gif/raw
https://iphqne.com/-/SiLo9/NOYiculA58.gif/raw

I think discord have maybe changed something in the way they embed images and because the normal url isn't an actual raw image it's struggling to embed.
I have this issue as well. Same configuration.
Having exact same issues except /raw does not embed either for me.
Discord has changed the user agent they use to fetch embeds.
You need to either change this line: https://github.com/SergiX44/XBackBone/blob/master/app/Web/UA.php#L22
to: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 11.6; rv:92.0) Gecko/20100101 Firefox/92.0' => true
or add a comma at the end of line 22 and add the same as above on the next line
@SergiX44
related to this, the video embed shows 0 seconds and does not actually play the content even after this change.
just tested the video issue, same for me.
After upgrading to the latest xbackbone version, videos under 50mb instantly embed, however like Skizzles, it displays a video lenght of 0 and fails to actually play.
After upgrading to the latest xbackbone version, videos under 50mb instantly embed, however like Skizzles, it displays a video length of 0 and fails to actually play.
having the same issue here as well it now embeds but it can't play as time is just 0:00
https://user-images.githubusercontent.com/56127525/139151356-c1647762-0588-4cac-8568-ac80cad07720.mp4
FYI link to the video https://cdn.thatguyjack.co.uk/Pibi1/JItETOYe91.mp4
Pictures also doesn't always embed for me even if I say /raw same with my budyd who host his own instance. Sometimes it does sometimes it doesn't. It doesn't embed without /raw like it used to