comparison 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
comparison
equal deleted inserted replaced
240:c454ea4f7b34 241:4bca1528675e
78 val[:url] = entity_media['expanded_url'] 78 val[:url] = entity_media['expanded_url']
79 val[:type] = entity_media['type'] 79 val[:type] = entity_media['type']
80 val[:id] = entity_media['media_key'] 80 val[:id] = entity_media['media_key']
81 end 81 end
82 82
83 key = if ret[entity_media['display_url']].nil? 83 key = if ret[entity_media['url']].nil?
84 entity_media['display_url'] 84 entity_media['url']
85 else 85 else
86 entity_media['media_key'] 86 entity_media['media_key']
87 end 87 end
88 88
89 ret[key] = val 89 ret[key] = val