Browse Source

解决动态展示重复问题

tags/v1.22.1.2
ychao_1983 3 years ago
parent
commit
5398751f50
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      models/action.go

+ 1
- 0
models/action.go View File

@@ -350,6 +350,7 @@ func GetLast20PublicFeeds(opTypes []int) ([]*Action, error) {
cond := builder.NewCond()
cond = cond.And(builder.Eq{"is_private": false})
cond = cond.And(builder.Eq{"is_deleted": false})
cond = cond.And(builder.Expr("user_id=act_user_id"))
cond = cond.And(builder.In("op_type", opTypes))

actions := make([]*Action, 0, 20)


Loading…
Cancel
Save