diff --git a/views/facebook_feed.erb b/views/facebook_feed.erb index 2068548..cfc0424 100644 --- a/views/facebook_feed.erb +++ b/views/facebook_feed.erb @@ -9,7 +9,7 @@ <%- @data.each do |post| -%> - facebook:post:<%= post["id"] %>:<%= Digest::SHA2.hexdigest((post["message"] rescue "")) %><%= ":#{params[:cachebuster]}" if params[:cachebuster] %> + facebook:post:<%= post["id"] %>:<%= Digest::SHA2.hexdigest((post["message"] || "" rescue "")) %><%= ":#{params[:cachebuster]}" if params[:cachebuster] %> <%= post["message"] ? post["message"].truncate(120) : post["type"] %> " /> <%= post["updated_time"] %>