dont crash if reported_post_count is null

theres a bunch of nullable attributes that i tend to assume will never
be null because im a bad programer someone remind me to fix thoses
This commit is contained in:
codl 2017-08-04 01:51:17 +02:00
parent 078f1aa554
commit 5df684a160
No known key found for this signature in database
GPG Key ID: 6CD7C8891ED1233A
1 changed files with 1 additions and 0 deletions

View File

@ -23,6 +23,7 @@
{% set post_count = g.viewer.account.post_count() %}
<p>Currently keeping track of {{ post_count }} of your posts, roughly {{ g.viewer.account.estimate_eligible_for_delete() }} of which currently match your expiration rules.</p>
{% if g.viewer.account.service == 'twitter'
and g.viewer.account.reported_post_count
and post_count < g.viewer.account.reported_post_count * 3/4
and g.viewer.account.reported_post_count > 3200 -%}
<div class='banner warning'>Are we missing some of your posts? Try uploading a tweet archive below</div>