Moin
5์ 15, 2024, 10:59์ค์
1
I noticed that the read time shown at some topics seems very high compared to the number of posts.
For example, there is only one post at the Custom Wizard Plugin ๐ง topic, but the read time is more than 3 hours.
Are deleted posts included when the read time is calculated?
5๊ฐ์ ์ข์์
pmusaraj
(Penar Musaraj)
5์ 15, 2024, 12:52์คํ
2
Hah, yeah, I donโt think you need a full 3 hours to read that topic. Good attentive eye!
6๊ฐ์ ์ข์์
Looking at https://meta.discourse.org/t/custom-wizard-plugin/73345.json โฆ the posts_count there is correctly 1โฆ but the word count is 95026 โ looks like this isnโt being updated when replies are deleted.
I also notice that there are 31 links listedโฆ so those are coming through deleted replies as well.
7๊ฐ์ ์ข์์
sam
(Sam Saffron)
5์ 16, 2024, 7:18์ค์
6
Oh myโฆ this is a double bug:
def update_topic_word_counts
DB.exec(
"UPDATE topics
SET word_count = (
SELECT SUM(COALESCE(posts.word_count, 0))
FROM posts
WHERE posts.topic_id = :topic_id
)
WHERE topics.id = :topic_id",
topic_id: @topic.id,
)
end
Post Revisor is not excluding posts with deleted_at not null
And Post Destroyer does nothing: discourse/lib/post_destroyer.rb at 45abb67f432bd009ca1bfef3e7735e632a4299fd ยท discourse/discourse ยท GitHub
So there is no workaround here even.
We will sort it out
3๊ฐ์ ์ข์์
zogstrip
์ ๋ซํ
5์ 20, 2024, 6:00์ค์
12
This topic was automatically closed after 2 days. New replies are no longer allowed.