rename new verifier fields
This commit is contained in:
@@ -261,11 +261,11 @@ func buildReviewedBy(state *appbsky.ActorDefs_VerificationState) []*verifier {
|
||||
Identifier: v.Issuer,
|
||||
}
|
||||
var handle string
|
||||
if v.Handle != nil {
|
||||
handle = *v.Handle
|
||||
if v.IssuerHandle != nil {
|
||||
handle = *v.IssuerHandle
|
||||
}
|
||||
if v.DisplayName != nil && *v.DisplayName != "" {
|
||||
entry.Name = *v.DisplayName
|
||||
if v.IssuerDisplayName != nil && *v.IssuerDisplayName != "" {
|
||||
entry.Name = *v.IssuerDisplayName
|
||||
if handle != "" && handle != "handle.invalid" {
|
||||
entry.AlternateName = "@" + handle
|
||||
}
|
||||
|
||||
@@ -175,11 +175,11 @@ func makeVerificationState(specs ...verifierSpec) *appbsky.ActorDefs_Verificatio
|
||||
}
|
||||
if s.handle != "" {
|
||||
h := s.handle
|
||||
v.Handle = &h
|
||||
v.IssuerHandle = &h
|
||||
}
|
||||
if s.displayName != "" {
|
||||
d := s.displayName
|
||||
v.DisplayName = &d
|
||||
v.IssuerDisplayName = &d
|
||||
}
|
||||
state.Verifications = append(state.Verifications, v)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user