diff --git a/CHANGELOG.md b/CHANGELOG.md index 12834b2a..51ac4383 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/internal/servants/chain/metrics.go b/internal/servants/chain/metrics.go index e159829e..a6d550c6 100644 --- a/internal/servants/chain/metrics.go +++ b/internal/servants/chain/metrics.go @@ -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 }