fix: 过滤 recordId/title 为 null 的异常广场条目(type!=1)
This commit is contained in:
@@ -410,7 +410,10 @@ class NewsPlatformService:
|
||||
return p
|
||||
|
||||
def _filter(items):
|
||||
"""过滤本人发布 + 无效 ID"""
|
||||
"""过滤本人发布 + 无效ID + 无标题/无recordId的空条目"""
|
||||
# 过滤空条目(recordId/title 为 null,type!=1 等异常数据)
|
||||
items = [x for x in items
|
||||
if x.get("recordId") and x.get("title") and x.get("type") == "1"]
|
||||
if platform_uid:
|
||||
items = [x for x in items if x.get("createUser") != platform_uid]
|
||||
items = [x for x in items
|
||||
|
||||
Reference in New Issue
Block a user