Merge branch 'x/gorm' into x/sqlx

r/paopao-ce-plus
Michael Li 1 year ago
commit 2052a71fe5
No known key found for this signature in database

@ -149,6 +149,16 @@ All notable changes to paopao-ce are documented in this file.
```
- add message filter support for message page.
- add read all unread message and display unread message count support for message page.
- add support follow user embed to index trends enable navigation user tweets by slide bar.
mirgration database first(sql ddl file in `scripts/migration/**/*_user_relation.up.sql`):
```sql
CREATE VIEW p_user_relation AS
SELECT user_id, friend_id he_uid, 5 AS style
FROM p_contact WHERE status=2 AND is_del=0
UNION
SELECT user_id, follow_id he_uid, 10 AS style
FROM p_following WHERE is_del=0;
```
## 0.4.2
### Fixed

@ -31,6 +31,6 @@ func (m *OnlineUserMetric) Name() string {
func (m *OnlineUserMetric) Action() (err error) {
// 暂时仅做标记,不存储其他相关信息
m.ac.Set(conf.KeyOnlineUser.Get(m.uid), []byte{}, m.expire)
m.ac.SetNx(conf.KeyOnlineUser.Get(m.uid), []byte{}, m.expire)
return
}

Loading…
Cancel
Save