fix: align member meta default avatars

This commit is contained in:
richjohnrambo
2026-09-24 11:00:19 +08:00
parent 75216c311d
commit 48ca3ae684
4 changed files with 108 additions and 6 deletions
+5 -1
View File
@@ -3374,7 +3374,11 @@ func (t *Topic) replyGetSub(sess *Session, asUid types.Uid, authLevel auth.Level
// Returning public and private only if they have changed since ifModified
if sendPubPriv {
// 'sub' has nil 'public'/'trusted' in P2P topics which is OK.
mts.Public = sub.GetPublic()
if t.cat == types.TopicCatGrp {
mts.Public = publicWithDefaultUserAvatar(sub.GetPublic(), uid.UserId())
} else {
mts.Public = sub.GetPublic()
}
mts.Trusted = sub.GetTrusted()
// Reporting 'private' only if it's user's own subscription.
if uid == asUid {