안녕하세요 @Moin !
늦게 답변드려서 죄송합니다. 꽤 까다로운 문제였거든요.
main ← fix-reviewable-insights-admin-flag
merged 03:02PM - 05 Aug 26 UTC
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`.
사실상, 플래거(flower)가 대상 사용자와 동일할 때 직렬화기(serializer)가 해당 탭에 필요한 추가 정보를 건너뛰고 있었습니다. created_by와 target_created_by의 순서를 바꾸어 target_created_by가 먼저 직렬화되도록 강제하고, 인사이트 탭이 올바르게 채워지도록 수정했습니다.
이제 latest에서 사용 가능합니다. 기회가 되면 테스트해 보시고 알려주세요.
1개의 좋아요