Permalink
Browse files

Some tweets have no date?

  • Loading branch information...
1 parent 6d3fedc commit 5cbc57339adb7169587ddcc5ae77b36becd570f7 @mitsuhiko mitsuhiko committed Jul 8, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 flask_website/templates/_twitter.html
@@ -5,7 +5,7 @@
<li>
<a href="http://twitter.com/{{ tweet.user }}">{{ tweet.user }}</a>:
{{ tweet.text|urlize }}
- <span class=meta>&mdash; {{ tweet.pub_date|timedeltaformat }} ago via {{ tweet.via }}</span>
+ <span class=meta>&mdash; {% if tweet.pub_date %}{{ tweet.pub_date|timedeltaformat }} ago {% endif %}via {{ tweet.via }}</span>
{%- endfor %}
</ul>
</div>

0 comments on commit 5cbc573

Please sign in to comment.