פוסטים לא נספרים לאחר המעבר

Hey guys,

after migrating from NodeBB with help of this guide using the NodeBB migration script everything looks good - all the categories, topics, posts etc. are there.

But I’ve noticed that every user has zero posts counted by Discourse. A user for example has 500 likes but 0 posts in the users overview. As all the posts are there, is there maybe a function to get the post count updated?

On the other hand, on a users profile the topics and posts in top categories are counted:

אני חושב שמשימה תרוץ שתתקן את זה בקרוב. אתה יכול גם לנסות
rake import:ensure_consistency

4 לייקים

@nino1904 האם הצלחת לפתור את הבעיה שלך?

לייק 1

אני יכול לומר כן, אבל הייתי רוצה לנסות הגירה נוספת. העניין הוא שניסיתי כמה דברים באותו יום ופתאום ספירות הפוסטים היו שם - אבל יותר מדי. לדוגמה, ב-NodeBB למשתמש יש בערך 1.5 אלף פוסטים, ב-Discourse למשתמש יש 2.8 אלף פוסטים.

לייק 1

Could discourse be importing deleted posts? That’s a big difference, though.

Another possibility is that Discourse counts pms and public posts and the other system counts them separately.

לייק 1

Good point, NodeBB does not count private messages. But private messages are not getting imported so not sure about that. By the way, why does Discourse count private messages as posts?

I’m not 100% sure that it does, but they are on the same posts table. I don’t know if the post count you’re looking at counts just the regular posts or all of them.

לייק 1

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.