lib/qiita_trend/trend.rb in qiita_trend-0.4.5 vs lib/qiita_trend/trend.rb in qiita_trend-0.4.6
- old
+ new
@@ -33,10 +33,10 @@
result['title'] = trend['node']['title']
result['user_name'] = trend['node']['author']['urlName']
result['user_image'] = user_image(trend['node']['author']['profileImageUrl'])
result['user_page'] = "#{Page::QIITA_URI}#{trend['node']['author']['urlName']}"
result['article'] = "#{Page::QIITA_URI}#{trend['node']['author']['urlName']}/items/#{trend['node']['uuid']}"
- result['created_at'] = trend['node']['createdAt']
+ result['published_at'] = trend['node']['publishedAt']
result['likes_count'] = trend['node']['likesCount']
result['is_new_arrival'] = trend['isNewArrival']
value << result
end
end