sergix44 / XBackBone

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

Refuses to embed on discord #405

Closed Vondyy closed 2 years ago

Vondyy commented 3 years ago

System Info

Describe the bug I take a screenshot and it auto copies to my clipboard using sharex, then whenever I post it on discord it refuses to embed. A slight obnoxious work around is everytime type in /raw at the end. Also, copy url mode to raw doesnt work. Please fix

To Reproduce Steps to reproduce the behavior:

  1. Take screenshot
  2. Paste on discord
  3. Doesnt embed

Expected behavior embed on discord

ARR4NN commented 3 years ago

try adding /raw at end of link. also make sure it has a file type in the link eg .png or .jpg

Vondyy commented 3 years ago

It is png and you obviously didn't read my post

sergix44 commented 3 years ago

I'm not able to reproduce it, I've tried with discord but works fine in bot embedding mode and direct file embedding. The copy mode affects only the copy link buttons, not the uploaders.

Vondyy commented 3 years ago

What do you mean bot embedding mode and the other one? Mine used to work fine a week or 2 ago and it randomly stopped working. My friend which self hosts his on his own vps has the same issue

On Sun, Oct 24, 2021, 4:02 PM Sergio Brighenti @.***> wrote:

I'm not able to reproduce it, I've tried with discord but works fine in bot embedding mode and direct file embedding. The copy mode affects only the copy link buttons, not the uploaders.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/SergiX44/XBackBone/issues/405#issuecomment-950385786, or unsubscribe https://github.com/notifications/unsubscribe-auth/AT2KWAWJZ4B2FD6RDDG6RD3UIRQ4HANCNFSM5GTKKDGA .

sergix44 commented 3 years ago

There is a switch in the settings, that enable embedding images instead displaying the raw image (second image in the screenshot) image

Anyway, as you can see both methods works fine to me, so I suggest to check your settings since Discord some time ago changed its User agent, so maybe can be something related to your config

rossiscool123 commented 2 years ago

@SergiX44 The issue isn't backbone but more along Discord, they seem to of banned a bunch of free TLD's as a domain of mine ending in .tk stopped working with the rise of all the fake nitro links. I tested it by creating a test meta page with these test meta tags.

<title>Meta Tags — Preview, Edit and Generate</title>
<meta name="title" content="Meta Tags — Preview, Edit and Generate">
<meta name="description" content="With Meta Tags you can edit and experiment with your content then preview how your webpage will look on Google, Facebook, Twitter and more!">
<meta property="og:type" content="website">
<meta property="og:url" content="https://metatags.io/">
<meta property="og:title" content="Meta Tags — Preview, Edit and Generate">
<meta property="og:description" content="With Meta Tags you can edit and experiment with your content then preview how your webpage will look on Google, Facebook, Twitter and more!">
<meta property="og:image" content="https://metatags.io/assets/meta-tags-16a33a6a8531e519cc0936fbba0ad904e52d35f34a46c97a2c9f6f7dd7d336f2.png">
<meta property="twitter:card" content="summary_large_image">
<meta property="twitter:url" content="https://metatags.io/">
<meta property="twitter:title" content="Meta Tags — Preview, Edit and Generate">
<meta property="twitter:description" content="With Meta Tags you can edit and experiment with your content then preview how your webpage will look on Google, Facebook, Twitter and more!">
<meta property="twitter:image" content="https://metatags.io/assets/meta-tags-16a33a6a8531e519cc0936fbba0ad904e52d35f34a46c97a2c9f6f7dd7d336f2.png">

No surprise they did not work on a .tk domain, failed to embed, not a single GET request from Cloudflare and even Apache didn't serve a cloudflare IP. Another story with my .com, .net and .rocks domain which all did a GET request to that index.html.

The issue isn't backbone but more of Discord being retarded and banning TLD extensions without a blog post.

rossiscool123 commented 2 years ago

@Vondyy

Vondyy commented 2 years ago

My issue was having this selected https://xbb.speedygoat.net/dUJU7/TEHUFOzO27.png turning this off fixed it