Skip to content

Commit e120daa

Browse files
committed
2 parents 62c413a + 7c31f28 commit e120daa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

templates/communities/communities_main.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ <h2 class="diary-title">{{ diary.title }}</h2>
6767
{%endif%}
6868
<a href="{% url 'diaries:detail_diaries' diary.id %}?next=communities" class="comment-btn" data-diary-id="{{ diary.id }}">
6969
<i class="bi bi-chat-dots"></i>
70-
<span id="comment-count-{{ diary.id }}">{{ diary.comment_set.count }}</span>
70+
<span id="comment-count-{{ diary.id }}">{{ diary.diary.count }}</span>
7171
</a>
7272
</div>
7373
</div>
@@ -130,6 +130,7 @@ <h2 class="diary-title">${diary.title}</h2>
130130
</a>
131131
</div>
132132
</div>`;
133+
console.log(diary.diary)
133134
});
134135

135136
// ✅ 필터링 후 새롭게 추가된 좋아요 버튼들에 이벤트 리스너 다시 등록

0 commit comments

Comments
 (0)