Don't raise if short_url is missing on a post

This commit is contained in:
Wesley Moore 2010-07-23 13:21:33 +10:00
parent 2385e5bdeb
commit 4a83545892

View file

@ -51,7 +51,7 @@
</script>
</li>
<li>
<% short = @item[:short_url]; raise "#{item.identifier} does not have a short url" if short.nil? %>
<% short = @item[:short_url] %>
<a href="http://twitter.com/home?status=<%= URI.encode("#{@item[:title]} - #{short} @wezm") %>" target="_blank">Tweet</a>
</li>
<li class="short">Short URL: <a href="<%= short %>"><%= short %></a></li>