sthewissen / MVP

Unofficial app to help MVPs manage their community activities
GNU General Public License v3.0
112 stars 31 forks source link

[Bug] The URL on clipboard functionality is broken #120

Open sthewissen opened 3 years ago

sthewissen commented 3 years ago

The app sees that there is something on the clipboard, but when grabbing it from the clipboard it returns null.

Only tested this on iOS atm, might be iOS15 related.

andreas-nesheim commented 3 years ago

Tested this as well on iOS 15 with different results:

https://github.com/andreas-nesheim/MVP.git -> Worked https://no.wikipedia.org/wiki/Klaus_Hasselmann -> Did not work

I'll test some more and submit a PR if I'm able to solve it

andreas-nesheim commented 3 years ago

It looks like it depends on if the author of the URL supports the Open Graph protocol or not. If the meta property og:url is missing from the site, the OpenGraph-utility fails to insert the URL. We could add a fallback-check that if this meta property doesn't exist, we use the OpenGraph.Url.AbsoluteUri directly?