diff --git a/pkg/api/nft_converters.go b/pkg/api/nft_converters.go index 4c725770..65651bcd 100644 --- a/pkg/api/nft_converters.go +++ b/pkg/api/nft_converters.go @@ -4,6 +4,7 @@ import ( "context" "encoding/json" "fmt" + "strings" "github.com/tonkeeper/opentonapi/internal/g" "github.com/tonkeeper/opentonapi/pkg/bath" @@ -55,6 +56,12 @@ func convertNFT(ctx context.Context, item core.NftItem, book addressBook, metaCa } } cInfo, _ := metaCache.getCollectionMeta(ctx, *item.CollectionAddress) + + // TODO: REMOVE, FAST HACK + if strings.Contains(cInfo.Description, "ton-staker.com") { + cInfo.Description = "SCAM" + } + i.Collection.SetTo(oas.NftItemCollection{ Address: item.CollectionAddress.ToRaw(), Name: cInfo.Name, @@ -97,6 +104,13 @@ func convertNftCollection(collection core.NftCollection, book addressBook) oas.N metadata := map[string]jx.Raw{} image := references.Placeholder for k, v := range collection.Metadata { + // TODO: REMOVE, FAST HACK + if k == "description" { + if value, ok := v.(string); ok && strings.Contains(value, "ton-staker.com") { + v = "SCAM" + } + } + var err error if k == "image" { if i, ok := v.(string); ok && i != "" {