Xyphyn / photon

An opinionated web client for Lemmy to help users discover the fediverse.
https://phtn.app
GNU Affero General Public License v3.0
389 stars 43 forks source link

Clicking share doesn't copy anything to clipboard. #422

Open BrianAllred opened 2 months ago

BrianAllred commented 2 months ago

Describe the bug Clicking Share from the 3-dot Post menu shows the "Copied to clipboard" notification, however the post link is not actually copied to clipboard.

To Reproduce (if applicable) Steps to reproduce the behavior:

  1. Copy something to your clipboard
  2. Click on a post's 3-dot menu and click Share (Local or Global, either is fine)
  3. Paste your clipboard somewhere
  4. It will be whatever you copied previously

Expected behavior The post link to be copied to my clipboard correctly.

Versions

Xyphyn commented 2 months ago

If your browser claims to support the share function, then it will use that, otherwise then it will copy to clipboard. Your browser may be reporting that it supports share, even though it doesnt.