fix: align member meta default avatars
This commit is contained in:
+5
-1
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user