Skip to content

Commit

Permalink
Imgur does not support hashtags.
Browse files Browse the repository at this point in the history
  • Loading branch information
stefansundin committed Apr 26, 2019
1 parent de93806 commit b330887
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1151,6 +1151,8 @@
elsif /imgur\.com\/(gallery\/)?(?<image_id>[a-zA-Z0-9]+)/ =~ params[:q]
# https://imgur.com/NdyrgaE
# https://imgur.com/gallery/NdyrgaE
elsif params[:q].start_with?("#")
return [404, "This app does not support hashtags. Sorry."]
else
# it's probably a username
username = params[:q]
Expand Down

0 comments on commit b330887

Please sign in to comment.