diff --git a/templates/post/poster_id.html b/templates/post/poster_id.html
index 3f168003..63cdf562 100644
--- a/templates/post/poster_id.html
+++ b/templates/post/poster_id.html
@@ -1,3 +1,7 @@
{% if config.poster_ids %}
- ID: {{ post.ip|poster_id(post.id) }}
+ {% if post.thread %}
+ ID: {{ post.ip|poster_id(post.thread) }}
+ {% else %}
+ ID: {{ post.ip|poster_id(post.id) }}
+ {% endif %}
{% endif %}