mirror of
https://github.com/wezm/wezm.net.git
synced 2024-11-10 01:42:32 +00:00
Don't raise if short_url is missing on a post
This commit is contained in:
parent
2385e5bdeb
commit
4a83545892
1 changed files with 1 additions and 1 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue