mirror of
https://github.com/neocities/neocities.git
synced 2025-04-24 17:22:35 +02:00
Fix Mastodon Share
Fix two issues with the Mastodon share link. Mastodon was not given a new line unlike all the other share links, so it was showing up right next to Tumblr. Second, the code that generated query params seems to have been copied from Tumblr or Facebook without properly testing it and does not fill in the textbox correctly. Fix this so the prefilled "Toot" matches what Twitter share would post.
This commit is contained in:
parent
dc33d70809
commit
c1f8427e77
1 changed files with 2 additions and 1 deletions
|
@ -12,4 +12,5 @@
|
|||
<a href="https://www.reddit.com/submit?<%= Rack::Utils.build_query(title: "#{site.title}", url: "#{page_uri}" )%>" target="_blank">Reddit</a>
|
||||
<br>
|
||||
<a href="https://www.tumblr.com/share?<%= Rack::Utils.build_query(v: 3, u: "#{page_uri}", t: "#{site.title}") %>" target="_blank">Tumblr</a>
|
||||
<a href="https://toot.kytta.dev/?text=<%= Rack::Utils.build_query(u: "#{page_uri}") %>" target="_blank">Mastodon</a>
|
||||
<br>
|
||||
<a href="https://toot.kytta.dev/?<%= Rack::Utils.build_query(text: "#{site.title}: #{page_uri}") %>" target="_blank">Mastodon</a>
|
||||
|
|
Loading…
Add table
Reference in a new issue