Module: Decidim::TwitterSearchHelper

Instance Method Summary collapse

Instance Method Details

#twitter_hashtag_url(hashtag) ⇒ String

Builds the URL for Twitter’s hashtag search.

Parameters:

  • hashtag (String)

    The hasthag to search

Returns:

  • (String)


10
11
12
# File 'decidim-core/app/helpers/decidim/twitter_search_helper.rb', line 10

def twitter_hashtag_url(hashtag)
  format("https://twitter.com/hashtag/%{hashtag}?src=hash", hashtag:)
end