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)
|
||||
}
|
||||
|
||||
+1
-1
@@ -3,7 +3,7 @@ module github.com/bluesky-social/social-app/bskyweb
|
||||
go 1.26
|
||||
|
||||
require (
|
||||
github.com/bluesky-social/indigo v0.0.0-20260527160159-3b7634c713b8
|
||||
github.com/bluesky-social/indigo v0.0.0-20260528134852-3e368bd18814
|
||||
github.com/flosch/pongo2/v6 v6.0.0
|
||||
github.com/ipfs/go-log v1.0.5
|
||||
github.com/joho/godotenv v1.5.1
|
||||
|
||||
@@ -4,6 +4,8 @@ github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM=
|
||||
github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw=
|
||||
github.com/bluesky-social/indigo v0.0.0-20260527160159-3b7634c713b8 h1:heYuihJZQZMNij7+dKIEfApG10xrGnDV2rtKpvFyYYU=
|
||||
github.com/bluesky-social/indigo v0.0.0-20260527160159-3b7634c713b8/go.mod h1:JqQkz8lrOI6YZivP38GHmtVOTtzsNToITKj1gMpU5Jo=
|
||||
github.com/bluesky-social/indigo v0.0.0-20260528134852-3e368bd18814 h1:UZK0qmB7LAe2IZY6RASlsE0Mm1Rjasddd2T5zWWvT54=
|
||||
github.com/bluesky-social/indigo v0.0.0-20260528134852-3e368bd18814/go.mod h1:JqQkz8lrOI6YZivP38GHmtVOTtzsNToITKj1gMpU5Jo=
|
||||
github.com/cespare/xxhash/v2 v2.3.0 h1:UL815xU9SqsFlibzuggzjXhog7bL6oX9BbNZnL2UFvs=
|
||||
github.com/cespare/xxhash/v2 v2.3.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs=
|
||||
github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU=
|
||||
|
||||
Reference in New Issue
Block a user