rename new verifier fields

This commit is contained in:
Michael Black
2026-05-28 10:37:07 -05:00
parent b217d9dd5d
commit af28680e5d
4 changed files with 9 additions and 7 deletions
+4 -4
View File
@@ -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
}
+2 -2
View File
@@ -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)
}