Skip to content

The share button on posts doesn't seem to work #3060

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

Open
4 tasks done
K4LCIFER opened this issue Apr 5, 2025 · 5 comments
Open
4 tasks done

The share button on posts doesn't seem to work #3060

K4LCIFER opened this issue Apr 5, 2025 · 5 comments
Labels
bug Something isn't working

Comments

@K4LCIFER
Copy link

K4LCIFER commented Apr 5, 2025

Requirements

  • This is a bug report, and if not, please post to https://lemmy.ml/c/lemmy_support instead.
  • Please check to see if this issue already exists.
  • It's a single bug. Do not report multiple bugs in one issue.
  • It's a frontend issue, not a backend issue; Otherwise please create an issue on the backend repo instead.

Summary

When clicking the share button, nothing gets copied to clipboard, it hangs for a moment, then a little window pops up asking what to do. If one clicks, for example, copy to clipboard, it still doesn't get copied to clipboard.

This is the window that pops up when I click that button:

Image

To be honest, I'm not 100% sure what I'd expect to happen with that button — I'm not sure what it's intended behavior is. At any rate, it currently doesn't seem to really work at all.

Steps to Reproduce

  1. Click the share button on a post
  2. Observe that nothing gets copied to clipboard
  3. Observe that it hangs for a moment before a little window pops up asking how to share
  4. Observe that clicking "copy to clipboard" doesn't copy to clipboard

Technical Details

OS: Arch Linux, Kernel v6.12.21-1-lts
DE: KDE Plasma v6.3.4
Browser: Firefox v137.0

Lemmy Instance Version

0.19.10

Lemmy Instance URL

sh.itjust.works

@K4LCIFER K4LCIFER added the bug Something isn't working label Apr 5, 2025
@dessalines
Copy link
Member

Where is this share button in lemmy-ui?

@K4LCIFER
Copy link
Author

K4LCIFER commented Apr 8, 2025

Where is this share button in lemmy-ui?

Image

@K4LCIFER
Copy link
Author

K4LCIFER commented Apr 8, 2025

This issue is perhaps related: asimons04/tesseract#40

It produces the same behavior.

@matc-pub
Copy link
Collaborator

matc-pub commented Apr 9, 2025

The button is only visible when navigator.canShare is true.

On desktop it is disabled for me, but works on Android (with Firefox based browser). Doing share -> copy copies the post url, share -> Signal app creates a new message with the url.

https://developer.mozilla.org/en-US/docs/Web/API/Navigator/share#browser_compatibility lists firefox as not supported.

Firefox 71 (Released 2019-12-10)
From version 71: this feature is behind the dom.webshare.enabled preference (needs to be set to true). To change preferences in Firefox, visit about:config.

@dessalines
Copy link
Member

Weird how that specific firefox is showing it. Maybe a KDE thing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants