mirror of
https://github.com/studiokaiji/nostr-webhost.git
synced 2025-12-17 06:44:28 +01:00
不要なfmt.Printlnを削除
This commit is contained in:
@@ -3,7 +3,6 @@ package server
|
|||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
"encoding/base64"
|
"encoding/base64"
|
||||||
"fmt"
|
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
@@ -100,8 +99,6 @@ func Start(port string) {
|
|||||||
|
|
||||||
// Replaceable Event (NIP-33)
|
// Replaceable Event (NIP-33)
|
||||||
r.GET("/p/:pubKey/d/*dTag", func(ctx *gin.Context) {
|
r.GET("/p/:pubKey/d/*dTag", func(ctx *gin.Context) {
|
||||||
fmt.Println("hi")
|
|
||||||
|
|
||||||
// pubKeyを取得しFilterに追加
|
// pubKeyを取得しFilterに追加
|
||||||
pubKey := ctx.Param("pubKey")
|
pubKey := ctx.Param("pubKey")
|
||||||
// npubから始まる場合はデコードする
|
// npubから始まる場合はデコードする
|
||||||
@@ -122,8 +119,6 @@ func Start(port string) {
|
|||||||
tags := nostr.TagMap{}
|
tags := nostr.TagMap{}
|
||||||
tags["d"] = []string{dTag}
|
tags["d"] = []string{dTag}
|
||||||
|
|
||||||
fmt.Println(dTag)
|
|
||||||
|
|
||||||
// Poolからデータを取得する
|
// Poolからデータを取得する
|
||||||
ev := pool.QuerySingle(ctx, allRelays, nostr.Filter{
|
ev := pool.QuerySingle(ctx, allRelays, nostr.Filter{
|
||||||
Kinds: []int{
|
Kinds: []int{
|
||||||
|
|||||||
Reference in New Issue
Block a user