feat: disciple link
This commit is contained in:
@@ -686,6 +686,11 @@ func (h *ProfileHandler) Get(w http.ResponseWriter, r *http.Request) {
|
||||
"following_count": following,
|
||||
"relationship": rel,
|
||||
"public_collections": cols,
|
||||
// True when an admin has linked this account to a record in the
|
||||
// disciples directory — i.e. one of Śrīla Prabhupāda's own initiated
|
||||
// disciples. Drives the badge on the profile header. Only the boolean
|
||||
// is exposed; the underlying Mongo id stays internal.
|
||||
"is_direct_disciple": u.DiscipleID != nil && *u.DiscipleID != "",
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user