# Reviewable insights中错误的加入日期和帖子数

**URL:** <https://meta.discourse.org/t/wrong-join-date-and-post-count-in-reviewable-insights/391232>\
**Category:** Bug\
**Tags:** review-queue, fixed\
**Created:** [2025年十二月13日 20:59 UTC](https://meta.discourse.org/t/wrong-join-date-and-post-count-in-reviewable-insights/391232 "2025-12-13T20:59:43Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![tannerabread](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tannerabread/32/526153_2.png) [@tannerabread](https://meta.discourse.org/u/tannerabread)\
**Post date:** [2026年八月5日 15:22 UTC](https://meta.discourse.org/t/wrong-join-date-and-post-count-in-reviewable-insights/391232/10 "2026-08-05T15:22:28Z")

</div>

你好 @Moin ！

抱歉回复晚了，这个问题确实有点棘手。

> <https://github.com/discourse/discourse/pull/42145>
>
> Previously, the reviewable insights metadata was not being serialized correctly …for admin users that flagged their own posts. There was a conflict with the order of the \`has\_one\` associations in the \`ReviewableSerializer\`. When an admin flagged their own post, the user was identical for both the \`target\_created\_by\` and \`created\_by\` attributes. This silently dropped the \`target\_created\_by\` attribute, resulting in broken metadata (join date, post count) for the flagged post.
> 
> This commit reordered the \`has\_one\` associations in the \`ReviewableSerializer\` to ensure that \`target\_created\_by\` is serialized before \`created\_by\`.

原来，当举报人也是被举报用户时，序列化器会跳过该标签页所需的额外信息——我交换了 `created_by` 和 `target_created_by` 的顺序，从而强制先序列化 `target_created_by`，并正确填充了洞察标签页。

该修复现已包含在 `latest` 版本中。如果有机会的话，请试试看。

---

_[View the full topic](https://meta.discourse.org/t/wrong-join-date-and-post-count-in-reviewable-insights/391232)._
