Monorepo for Tangled tangled.org
788
fork

Configure Feed

Select the types of activity you want to include in your feed.

appview/state: add vouch handlers #16

open opened by oppi.li targeting master from op/uxqspoupnxkp
Labels

None yet.

assignee

None yet.

Participants 1
AT URI
at://did:plc:qfpnj4og54vl56wngdriaxug/sh.tangled.repo.pull/3mkavb2fftv22
+7 -6
Interdiff #1 #2
appview/oauth/scopes.go

This file has not been changed.

appview/pages/templates/user/fragments/profileCard.html

This file has not been changed.

appview/pages/templates/user/fragments/vouch.html

This file has not been changed.

appview/pages/templates/user/fragments/vouchTooltip.html

This file has not been changed.

+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

This file has not been changed.

appview/state/state.go

This file has not been changed.

+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,

History

3 rounds 0 comments
sign up or login to add to the discussion
oppi.li submitted #2
1 commit
expand
appview/state: add vouch handlers
merge conflicts detected
expand
  • api/tangled/cbor_gen.go:9735
  • cmd/cborgen/cborgen.go:24
expand 0 comments
1 commit
expand
appview/state: add vouch handlers
expand 0 comments
oppi.li submitted #0
1 commit
expand
appview/state: add vouch handlers
expand 0 comments