diff app/lib/legit_client.rb @ 241:4bca1528675e legit-client

Wrong entity lookup key
author nanaya <me@nanaya.net>
date Sat, 15 Jul 2023 17:06:21 +0900
parents c454ea4f7b34
children bc2f45058c9e
line wrap: on
line diff
--- a/app/lib/legit_client.rb	Sat Jul 15 03:24:56 2023 +0900
+++ b/app/lib/legit_client.rb	Sat Jul 15 17:06:21 2023 +0900
@@ -80,8 +80,8 @@
         val[:id] = entity_media['media_key']
       end
 
-      key = if ret[entity_media['display_url']].nil?
-        entity_media['display_url']
+      key = if ret[entity_media['url']].nil?
+        entity_media['url']
       else
         entity_media['media_key']
       end