diff --git a/server/db/mysql/tenant_adapter.go b/server/db/mysql/tenant_adapter.go index f6f336d..317551d 100644 --- a/server/db/mysql/tenant_adapter.go +++ b/server/db/mysql/tenant_adapter.go @@ -6773,7 +6773,7 @@ func (a *adapter) TenantFriendshipList(id t.TenantID, uid t.Uid, queryText, init if cancel != nil { defer cancel() } - rows, err := a.db.QueryxContext(ctx, fmt.Sprintf(`SELECT fs.*,u.trusted, + rows, err := a.db.QueryxContext(ctx, fmt.Sprintf(`SELECT fs.id,fs.user_id,fs.peer_id,fs.status,fs.remark,fs.topic,fs.created_at,fs.updated_at,u.trusted, p.nickname AS profile_nickname,p.avatar_file_id AS profile_avatar_file_id,p.signature AS profile_signature, p.gender AS profile_gender,p.region AS profile_region,p.public_account AS profile_public_account,p.updated_at AS profile_updated_at FROM %s AS fs diff --git a/server/im_http.go b/server/im_http.go index 9db0ad5..6f04430 100644 --- a/server/im_http.go +++ b/server/im_http.go @@ -4252,6 +4252,8 @@ func serveIMGroupMembers(wrt http.ResponseWriter, req *http.Request, topic strin Mentionable: mentionableOnly, }) if err != nil { + logs.Warn.Printf("im http: list group members failed tenant=%d topic=%s uid=%s limit=%d cursor=%q query=%q role=%q mentionable=%t err=%v", + principal.TenantID, topic, principal.Uid.UserId(), limit, cursor, query, roleFilter, mentionableOnly, err) writeIMError(wrt, req, http.StatusInternalServerError, 90000, imReasonInternal, "internal error", nil) return } diff --git a/server/store/store.go b/server/store/store.go index 20c72f5..91e8fe1 100644 --- a/server/store/store.go +++ b/server/store/store.go @@ -2722,9 +2722,6 @@ func refreshUserProfileProjections(tenantID types.TenantID, uid types.Uid, profi if types.GetTopicCat(sub.Topic) != types.TopicCatGrp { continue } - if err := Subs.Update(tenantID, sub.Topic, uid, map[string]any{"Public": public}); err != nil { - logs.Warn.Printf("profile %s: refresh group subscription %s public failed: %v", uid, sub.Topic, err) - } invalidateGroupMemberPages(tenantID, sub.Topic) } }