[Condenser] Add Share on Reddit Button to Post Page

Words
105
Reading
1 min
Listen
Play
8y

[Condenser] Add Share on Reddit Button to Post Page


Source


Repository

https://github.com/steemit/condenser

New Features

  • Added Share On Reddit Button To Post

Description

Adding the ability to easily share to different social media websites with a lot of traffic at the click of a button spreads Steem to a wider community. It also helps users on mobile be able to share links to Reddit much quicker. Reddit is currently ranked 3rd in the US and 4th in the Global internet according to Alexa.

Files changes

  • src/app/assets/icons/reddit.svg
  • src/app/components/cards/PostFull.jsx
  • src/app/components/elements/Icon.jsx
  • src/app/locales/en.json

Relevant Code

    redditShare(e) {
        serverApiRecordEvent('RedditShare', this.share_params.link);
        e.preventDefault();
        const s = this.share_params;
        const q =
            'title=' +
            encodeURIComponent(s.title) +
            '&url=' +
            encodeURIComponent(s.url);
        window.open('https://www.reddit.com/submit?' + q, 'Share');
    }

Screenshots

Links

[Condenser] Add Share on Reddit Button to Post Page | Ecency