Merge branch 'r/paopao-ce-plus' into r/paopao-ce-xtra

r/paopao-ce-xtra
Michael Li 2 years ago
commit fbb1e6c59f
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 message filter support for message page.
- add read all unread message and display unread message count 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 ## 0.4.2
### Fixed ### Fixed

@ -31,6 +31,6 @@ func (m *OnlineUserMetric) Name() string {
func (m *OnlineUserMetric) Action() (err error) { 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 return
} }

Loading…
Cancel
Save