SpacingBat3 / WebCord

A Discord and SpaceBar :electron:-based client implemented without Discord API.
MIT License
1.88k stars 93 forks source link

Can't share media #435

Closed 4164696f73 closed 1 year ago

4164696f73 commented 1 year ago

Aknowledgements

Operating System / Platform

🐧️ Linux

Operating system architecture

x64 (64-bit Intel/AMD)

Electron version

25.2.0

Application version

4.3.0

Bug description

Can't publish any screenshots via Webcord, going to Discord website works flawlessly. All I get is long loading, and then "an error occurred".

Not sure if this is tied to Flatpak or not, though. Couldn't fix it with permissions etc.

Additional context

No response

SpacingBat3 commented 1 year ago

Possibly a duplicate of #371 (what's your CSP settings?).

4164696f73 commented 1 year ago

You mean this?

Would be cool to add a small note, because this is actually what was causing the issue... Google Storage API is required for that.

SpacingBat3 commented 1 year ago

You mean this?

Would be cool to add a small note, because this is actually what was causing the issue... Google Storage API is required for that.

That's the reason why these are in Advanced section – whatever you disable in CSP, it is expected you will end up with breakages. If disabled everything (like in your case), you might notice GIF picker not working, a lot of embeds not loading (YouTube videos, Spotify player etc.), even uploads are not functioning as new Discord implementation uses Google Storage API (in the past Discord uploaded images directly and did not depend on Google stuff).