mlemgroup / mlem

Mlem for Lemmy
https://lemmy.ml/c/mlemapp
GNU General Public License v3.0
175 stars 32 forks source link

Alternative Source Links in Posts #1181

Open d42ohpaz opened 1 month ago

d42ohpaz commented 1 month ago

From https://dubvee.org/post/1621850:

Other Lemmy App Devs: Please steal this feature from me

Feature: Alternate Source Selector

Implementation Difficulty: Easy

Live Example: https://tesseract.dubvee.org/c/news@lemmy.world (The "link" icon to the left of the post's URL.)

Rationale: I'm quite annoyed with people whining "pAyWallED!" in news post comments, and this is Tesseract's way of addressing that (for users of that UI, anyway)

Description:

On posts with links (that aren't images, audio, video, Youtube, or other media), a dropdown menu is added with links to alternate sources.

Each one will search for the URL in the selected archive provider (currently Ghost Archive, Archive Today, 12ft.io) or Ground News (new in 1.4.5).

Lemmy-UI kind of does this, but completely ass-backwards (only during post creation to set the post link; I'll spare you my spiel about how that's a horrible vector for misinformation).

On Youtube-like posts (YT, Invidious, or Piped), the options are changed to go to the canonical YT link, your preferred Invidious instance, or your preferred Piped instance, but that's just a secondary (but still nice) feature of that component.

Would love to see something like this more widely adopted and am more than happy to answer any implementation questions.

asimons04 commented 1 month ago

Basically, I'm providing (currently) 4 links on posts based upon the URL of the post. I'm presenting them as a dropdown menu in my implementation, but how it's presented to the end-user is completely up to the developer.

Conditions:

Link Templates (where %s is the post URL, including scheme): 1) Archive Today: https://archive.ph/%s 1) Ghost Archive: https://ghostarchive.org/search?term=%s 1) 12ft.io: https://12ft.io/proxy?q=%s 1) Ground News (not an archive provider, but can search for similar coverage of the provided article that may not be paywalled): https://ground.news/find?url=%s

Sjmarf commented 1 month ago

I like this idea, it should be pretty easy to do once 2.0 is up and running