Signed-off-by: oppiliappan me@oppi.li
appview/oauth/scopes.go
appview/oauth/scopes.go
This file has not been changed.
appview/pages/templates/user/fragments/profileCard.html
appview/pages/templates/user/fragments/profileCard.html
This file has not been changed.
appview/pages/templates/user/fragments/vouch.html
appview/pages/templates/user/fragments/vouch.html
This file has not been changed.
appview/pages/templates/user/fragments/vouchTooltip.html
appview/pages/templates/user/fragments/vouchTooltip.html
This file has not been changed.
+4
-4
appview/pages/templates/user/vouches.html
+4
-4
appview/pages/templates/user/vouches.html
···
44
44
<div class="flex flex-col gap-2">
45
45
{{ range .Suggestions }}
46
46
<div class="flex items-center gap-3 border border-gray-200 dark:border-gray-700 rounded-sm p-4 bg-white dark:bg-gray-800">
47
-
<img src="{{ tinyAvatar .Did }}" alt="" class="rounded-full size-10 border border-gray-300 dark:border-gray-700 shrink-0" />
47
+
<img src="{{ tinyAvatar .Did.String }}" alt="" class="rounded-full size-10 border border-gray-300 dark:border-gray-700 shrink-0" />
48
48
<div class="flex flex-col gap-0.5 min-w-0 flex-1">
49
-
<a href="/{{ resolve .Did }}" class="font-medium hover:underline dark:text-white truncate">{{ resolve .Did }}</a>
49
+
<a href="/{{ resolve .Did.String }}" class="font-medium hover:underline dark:text-white truncate">{{ resolve .Did.String }}</a>
50
50
<span class="text-sm text-gray-500 dark:text-gray-400">{{ .Reason }}</span>
51
51
</div>
52
52
<div class="shrink-0 w-32">
···
89
89
{{ if and $isSelf $isOutgoing }}
90
90
<span class="font-medium text-gray-700 dark:text-gray-300">you</span>
91
91
{{ else }}
92
-
<a href="/{{ resolve $v.Did }}" class="font-medium hover:underline">{{ resolve $v.Did }}</a>
92
+
<a href="/{{ resolve $v.Did.String }}" class="font-medium hover:underline">{{ resolve $v.Did.String }}</a>
93
93
{{ end }}
94
94
<span class="text-gray-500 dark:text-gray-400">
95
95
{{ if $isVouch }}vouched for{{ else }}denounced{{ end }}
···
97
97
{{ if and $isSelf (not $isOutgoing) }}
98
98
<span class="font-medium text-gray-700 dark:text-gray-300">you</span>
99
99
{{ else }}
100
-
<a href="/{{ resolve $v.SubjectDid }}" class="font-medium hover:underline">{{ resolve $v.SubjectDid }}</a>
100
+
<a href="/{{ resolve $v.SubjectDid.String }}" class="font-medium hover:underline">{{ resolve $v.SubjectDid.String }}</a>
101
101
{{ end }}
102
102
<span class="text-gray-400 dark:text-gray-500 text-xs">{{ relTimeFmt $v.CreatedAt }}</span>
103
103
</div>
appview/state/router.go
appview/state/router.go
This file has not been changed.
appview/state/state.go
appview/state/state.go
This file has not been changed.
+3
-2
appview/state/vouch.go
+3
-2
appview/state/vouch.go
···
5
5
"time"
6
6
7
7
comatproto "github.com/bluesky-social/indigo/api/atproto"
8
+
"github.com/bluesky-social/indigo/atproto/syntax"
8
9
lexutil "github.com/bluesky-social/indigo/lex/util"
9
10
"github.com/ipfs/go-cid"
10
11
"tangled.org/core/api/tangled"
···
137
138
}
138
139
139
140
vouch := &models.Vouch{
140
-
Did: currentUser.Did,
141
-
SubjectDid: subjectDid,
141
+
Did: syntax.DID(currentUser.Did),
142
+
SubjectDid: subjectIdent.DID,
142
143
Cid: newCid,
143
144
Kind: kind,
144
145
Reason: reasonPtr,