Skip to content

Commit

Permalink
Facebook: don't use updated_time in id.
Browse files Browse the repository at this point in the history
  • Loading branch information
stefansundin committed Jul 3, 2015
1 parent 3f8d153 commit 39f4367
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion views/facebook_feed.erb
Expand Up @@ -9,7 +9,7 @@
<%- @data.each do |post| -%>

<entry>
<id>facebook:post:<%= post["id"] %>:<%= post["updated_time"] %><%= ":#{params[:cachebuster]}" if params[:cachebuster] %></id>
<id>facebook:post:<%= post["id"] %>:<%= Digest::SHA2.hexdigest((post["message"] rescue "")) %><%= ":#{params[:cachebuster]}" if params[:cachebuster] %></id>
<title><%= post["message"] ? post["message"].truncate(120) : post["type"] %></title>
<link href="<%= post["link"] || "https://www.facebook.com/#{post["id"]}" %>" />
<updated><%= post["updated_time"] %></updated>
Expand Down

0 comments on commit 39f4367

Please sign in to comment.