Sha256: ce65ff60f62079b92e1fba7b69562f9ef2af31b6b7d1b65c8ea187e2a8f4c87c

Contents?: true

Size: 350 Bytes

Versions: 21

Compression:

Stored size: 350 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module TwitterSearchHelper
    # Builds the URL for Twitter's hashtag search.
    #
    # @param hashtag [String] The hasthag to search
    #
    # @return [String]
    def twitter_hashtag_url(hashtag)
      format("https://twitter.com/hashtag/%{hashtag}?src=hash", hashtag: hashtag)
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
decidim-core-0.27.9 app/helpers/decidim/twitter_search_helper.rb
decidim-core-0.27.8 app/helpers/decidim/twitter_search_helper.rb
decidim-core-0.27.7 app/helpers/decidim/twitter_search_helper.rb
decidim-core-0.27.6 app/helpers/decidim/twitter_search_helper.rb
decidim-core-0.26.10 app/helpers/decidim/twitter_search_helper.rb
decidim-core-0.26.9 app/helpers/decidim/twitter_search_helper.rb
decidim-core-0.27.5 app/helpers/decidim/twitter_search_helper.rb
decidim-core-0.26.8 app/helpers/decidim/twitter_search_helper.rb
decidim-core-0.27.4 app/helpers/decidim/twitter_search_helper.rb
decidim-core-0.27.3 app/helpers/decidim/twitter_search_helper.rb
decidim-core-0.26.7 app/helpers/decidim/twitter_search_helper.rb
decidim-core-0.26.5 app/helpers/decidim/twitter_search_helper.rb
decidim-core-0.27.2 app/helpers/decidim/twitter_search_helper.rb
decidim-core-0.27.1 app/helpers/decidim/twitter_search_helper.rb
decidim-core-0.26.4 app/helpers/decidim/twitter_search_helper.rb
decidim-core-0.27.0 app/helpers/decidim/twitter_search_helper.rb
decidim-core-0.26.3 app/helpers/decidim/twitter_search_helper.rb
decidim-core-0.27.0.rc2 app/helpers/decidim/twitter_search_helper.rb
decidim-core-0.27.0.rc1 app/helpers/decidim/twitter_search_helper.rb
decidim-core-0.26.2 app/helpers/decidim/twitter_search_helper.rb