Refactor Post and Post Comment models to strictly use Vision ID string pattern

Updated Post_Base and Post_Comment_Base to ensure integer IDs (post_id, post_comment_id) are explicitly removed during validation to prevent mixed-type ID collisions. This hardens the V3 Vision standard compliance.
This commit is contained in:
Scott Idem
2026-01-27 12:16:56 -05:00
parent 5af3f44a53
commit 007fd2ec8f
2 changed files with 2 additions and 2 deletions

View File

@@ -74,7 +74,7 @@ class Post_Comment_Base(BaseModel):
values['user_id'] = u_rid
# 2. Prevent "Collision Population"
for k in ['id', 'post_id', 'person_id', 'user_id']:
for k in ['id', 'post_comment_id', 'post_id', 'person_id', 'user_id']:
if k in values and not isinstance(values[k], str):
del values[k]