Skip to content

Commit 2199256

Browse files
committed
grasp: fix isPushed value when rendering list of repos.
1 parent 09f135d commit 2199256

3 files changed

Lines changed: 9 additions & 3 deletions

File tree

grasp/grasp.templ

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,13 @@ templ graspPage(loggedUser nostr.PubKey) {
4646
}
4747
</td>
4848
<td class="px-4 py-3 text-sm text-stone-600 dark:text-stone-400">
49-
<nostr-name pubkey={ repo.Event.PubKey.Hex() } class="text-stone-700 dark:text-stone-300">{ repo.Event.PubKey.Hex() }</nostr-name>
49+
<a
50+
href={ templ.URL("https://njump.to/p/" + repo.Event.PubKey.Hex()) }
51+
target="_blank"
52+
class="font-mono text-sm"
53+
>
54+
<nostr-name pubkey={ repo.Event.PubKey.Hex() } class="text-lg">{ repo.Event.PubKey.Hex() }</nostr-name>
55+
</a>
5056
</td>
5157
</tr>
5258
}

grasp/repos.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ func getRepositories() iter.Seq2[nip34.Repository, bool] {
1515
for evt := range global.IL.Main.QueryEvents(nostr.Filter{Kinds: []nostr.Kind{nostr.KindRepositoryAnnouncement}}, 1000) {
1616
repo := nip34.ParseRepository(evt)
1717
var cont bool
18-
if info, err := os.Stat(filepath.Join(repoDir, repo.ID)); err == nil && info.IsDir() {
18+
if info, err := os.Stat(filepath.Join(repoDir, repo.PubKey.Hex(), repo.ID)); err == nil && info.IsDir() {
1919
cont = yield(repo, true)
2020
} else {
2121
cont = yield(repo, false)

invite_tree.templ

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ templ inviteTreeComponent(curr nostr.PubKey, loggedUser nostr.PubKey, isAncestor
6666
}
6767
>
6868
<a
69-
href={ templ.URL("https://njump.me/p/" + child.Hex()) }
69+
href={ templ.URL("https://njump.to/p/" + child.Hex()) }
7070
target="_blank"
7171
class="font-mono text-sm"
7272
>

0 commit comments

Comments
 (0)