Skip to content

Commit

Permalink
Move comment
Browse files Browse the repository at this point in the history
  • Loading branch information
stu43005 committed May 23, 2018
1 parent 983f9f3 commit f9c61e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app.rb
Expand Up @@ -480,13 +480,13 @@
"photos" => "updated_time,from,message,description,name,link,source",
}[@edge]

query = { fields: fields, since: Time.now.to_i-365*24*60*60 }
query = { fields: fields, since: Time.now.to_i-365*24*60*60 } # date -v -1w +%s

if params[:locale]
query[:locale] = params[:locale]
end

response = Facebook.get("/#{id}/#{@edge}", query: query) # date -v -1w +%s
response = Facebook.get("/#{id}/#{@edge}", query: query)
return "#{Facebook::BASE_URL}/#{id}/#{@edge} returned code #{response.code}." if response.code == 400
raise(FacebookError, response) if !response.success?

Expand Down

0 comments on commit f9c61e5

Please sign in to comment.