Support » Plugin: Shariff Wrapper » Mastodon button

  • Resolved scroom

    (@scroom)


    Hallo,

    I’m a great fan of the Shariff Wrapper Plugin but I’m missing a Mastodon button. Mastodon is a federated social network which is open source:

    https://joinmastodon.org/

    Would be great if you could implement such a share button in your plugin!

Viewing 12 replies - 1 through 12 (of 12 total)
  • I would like to see that happen as well.

    Plugin Author Jan-Peter

    (@starguide)

    Hey there,

    sure thing, I would like to include it, but will need some help, since I’m not very familiar with Mastodon. How would a share URL look like for Mastodon? I know Diaspora (decentralized as well) has a dedicated share service for this that lets you choose your hub. How does Mastodon handle this?

    Cheers
    Jan-Peter

    Looking into this briefly brings up two threads:
    https://github.com/tootsuite/mastodon/issues/1978
    https://github.com/tootsuite/mastodon/issues/442

    Last activity was in July 2017, which is not very promising.

    Thread Starter scroom

    (@scroom)

    Hello,

    Some weeks ago, I asked ind the Mastodon forum and received some links.

    An example developed bey the Mastodon founder Gargon (most helpful): https://jsfiddle.net/pvyoof6L/3/

    Mastodon Codebase: https://github.com/tootsuite/mastodon/pull/4511

    The helping user meant that: “Following to the above resources, You can implement It by just creating URL which starts with the protocol web+mastodon://.

    share: web+mastodon://share?text= + text to share which is URL encoded
    follow: web+mastodon://follow?uri=acct: + example_account@domain.com

    Here comes the link to the forum entry: https://discourse.joinmastodon.org/t/mastodon-share-button/762/2

    • This reply was modified 3 years, 4 months ago by scroom.
    • This reply was modified 3 years, 4 months ago by scroom.
    • This reply was modified 3 years, 4 months ago by scroom.
    • This reply was modified 3 years, 4 months ago by scroom.
    Plugin Author Jan-Peter

    (@starguide)

    Hey,

    just for me to understand it better: Do you need to install the Mastodon software locally on your computer to use it as a normal user? I pretty much thought, only if you want to run a server you would need to. But otherwise how would your computer know what to do with “web+mastodon://”, if you do not have a software installed that registers that protocol? If I click on that demo button, it just opens up a window saying “don’t know what to do with that link”.

    I’m probably missing something, because I’m not a Mastodon user. Maybe someone can shed some light on this. 🙂

    Cheers
    Jan-Peter

    Thread Starter scroom

    (@scroom)

    Hey,

    when I’m clicking on the link Firefox asks me which instance I want to use and suggests the two instances on which I have accounts. I don’t have any software installed.

    I don’t remember for sure but I think after the first login on these accounts Firefox asked if I want to register this site for these kind of links.

    Cheers

    Alexander

    • This reply was modified 3 years, 4 months ago by scroom.
    Plugin Author Jan-Peter

    (@starguide)

    Hey Alexander,

    I just implemented it roughly, but of course cannot test it myself. Could you please test the button and let me know, if it works as expected?

    https://lp42.de/cms/mastodon-test/

    Thanks.
    Jan-Peter

    Thread Starter scroom

    (@scroom)

    Hey Jan-Peter,

    seems to work as expected!

    Thanks!

    Alexander

    Thread Starter scroom

    (@scroom)

    Hey Jan-Peter @starguide,

    it there a chance that your work will be included in a future update to Shariff Wrapper? Would be great!

    Thanks in advance!

    Alexander

    • This reply was modified 3 years, 2 months ago by scroom.
    Plugin Author Jan-Peter

    (@starguide)

    Hi Alexander,

    the new version is already finished. I just need a few more people to test it, before I officially release it. I just want to make sure that I din’t make any stupid mistakes that crashes peoples sites.

    Cheers
    Jan-Peter

    Thread Starter scroom

    (@scroom)

    Hi Jan-Peter,

    just updated to the new Shariff Wrapper plugin. The mastodon button works like a charm! Thanks for your great work!

    Unfortunately the hint is still missing in the help (e.g. in the list of available services). Do you want me to write another bug report somewhere?

    Cheers

    Alexander

    Plugin Author Jan-Peter

    (@starguide)

    Hi Alexander,

    there is always something you forget… I already fixed it and it will be included in the next minor bug fix round.

    Thanks again!
    JP

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Mastodon button’ is closed to new replies.