elk-zone / elk

A nimble Mastodon web client
https://elk.zone
MIT License
5.51k stars 564 forks source link

feat: add credits to creators in link previews using `fediverse:creator` #3012

Closed shuuji3 closed 3 weeks ago

shuuji3 commented 1 month ago

resolve #2995

(This change requires masto.js v6.10.0+ to support Mastodon v4.3.0+)

To implement a new author link on the footer, I mimicked the design on mastodon.social but any feedback is welcome.


screenshot of the post with a new author link

https://mastodon.social/@Mastodon/113272025176822566

Before (or Mastodon < v4.3.0)

Screenshot of the post with link preview

After (with Mastodon v4.3.0+)

Screenshot of the post with link preview. There is an extra footer below the link preview information that says "More from Eugen Rochko" with an avatar icon image

Screenshot of the post with link preview in timeline

https://deploy-preview-3012--elk-zone.netlify.app/mastodon.social/@Mastodon/112718231305707672

netlify[bot] commented 1 month ago

Deploy Preview for elk-docs canceled.

Name Link
Latest commit c844511f662eecc5172dc86056f518dfaca24a54
Latest deploy log https://app.netlify.com/sites/elk-docs/deploys/6719c453f695e800086908d4
netlify[bot] commented 1 month ago

Deploy Preview for elk-zone ready!

Name Link
Latest commit c844511f662eecc5172dc86056f518dfaca24a54
Latest deploy log https://app.netlify.com/sites/elk-zone/deploys/6719c453744d1b0007e9f6e9
Deploy Preview https://deploy-preview-3012--elk-zone.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

shuuji3 commented 1 month ago

universedon.com uses Mastodon v4.2.10, so we need to log in to another instance with Mastodon v4.3.0 (like mastodon.social) to check the change in the preview.