about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authormultiple creatures <dev@multiple-creature.party>2019-07-22 21:42:34 -0500
committermultiple creatures <dev@multiple-creature.party>2019-07-22 21:42:34 -0500
commit54bc08a8a320ffd5b109da5cda520a3437b3a763 (patch)
treed06c16b4c2ed1a1fd5557dad130cf1666e489c99 /app
parentc2e47f58713373c3d10423bb5d07c51309f40f70 (diff)
fix typo - `url` -> `@url`
Diffstat (limited to 'app')
-rw-r--r--app/services/fetch_link_card_service.rb2
-rw-r--r--app/services/fetch_oembed_service.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/app/services/fetch_link_card_service.rb b/app/services/fetch_link_card_service.rb
index b23090cd7..cd0b77426 100644
--- a/app/services/fetch_link_card_service.rb
+++ b/app/services/fetch_link_card_service.rb
@@ -22,7 +22,7 @@ class FetchLinkCardService < BaseService
 
     @url = sanitize_query_string(@url.to_s)
     return if @url.nil?
-    return if autoreject?(url)
+    return if autoreject?(@url)
 
     RedisLock.acquire(lock_options) do |lock|
       if lock.acquired?
diff --git a/app/services/fetch_oembed_service.rb b/app/services/fetch_oembed_service.rb
index 528881911..74e77df2e 100644
--- a/app/services/fetch_oembed_service.rb
+++ b/app/services/fetch_oembed_service.rb
@@ -9,7 +9,7 @@ class FetchOEmbedService
     @url     = url
     @options = options
 
-    return if autoreject?(url)
+    return if autoreject?(@url)
     discover_endpoint!
     fetch!
   end