Skip to content

Commit 81e5253

Browse files
committed
hotfix: fix check on data.geo.data
1 parent f0f6d44 commit 81e5253

File tree

5 files changed

+7
-8
lines changed

5 files changed

+7
-8
lines changed

apps/nocapd/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"@nostrwatch/logger": "^0.0.3",
1212
"@nostrwatch/nocap": "^0.2.2",
1313
"@nostrwatch/nwcache": "^0.0.2",
14-
"@nostrwatch/publisher": "^0.2.2",
14+
"@nostrwatch/publisher": "^0.2.4",
1515
"@nostrwatch/seed": "^0.0.1",
1616
"@nostrwatch/utils": "^0.0.1",
1717
"chalk": "5.3.0",

apps/trawler/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"@nostrwatch/logger": "^0.0.3",
1414
"@nostrwatch/nocap": "^0.2.2",
1515
"@nostrwatch/nwcache": "^0.0.1",
16-
"@nostrwatch/publisher": "^0.2.3",
16+
"@nostrwatch/publisher": "^0.2.4",
1717
"@nostrwatch/seed": "^0.0.1",
1818
"@nostrwatch/utils": "^0.0.1",
1919
"@types/ioredis": "5.0.0",

packages/announce/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"nostr-tools": "^2.3.1"
1818
},
1919
"devDependencies": {
20-
"@nostrwatch/publisher": "^0.2.3",
20+
"@nostrwatch/publisher": "^0.2.4",
2121
"@types/node": "^20.11.24",
2222
"@typescript-eslint/eslint-plugin": "^7.1.1",
2323
"@typescript-eslint/parser": "^7.1.1",

packages/publisher/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@nostrwatch/publisher",
3-
"version": "0.2.2",
3+
"version": "0.2.4",
44
"type": "module",
55
"description": "Library for publishing nostr.watch relay status and publisher registration events",
66
"main": "index.js",

packages/publisher/src/kinds/Kind30166.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,9 @@ export class Kind30166 extends PublisherNocap {
2424

2525
static generateTags(data){
2626
let tags = []
27-
28-
data.geo.data = transformGeoResult(data.geo.data)
29-
27+
3028
tags.push(['d', data.url])
31-
29+
3230
if(data?.network){
3331
tags.push(['n', data.network])
3432
}
@@ -64,6 +62,7 @@ export class Kind30166 extends PublisherNocap {
6462
}
6563

6664
if(data?.geo?.data){
65+
data.geo.data = transformGeoResult(data.geo.data)
6766
tags = [...tags, ...ngeotags(data.geo.data, { iso31662: true, iso3163: true, cityName: true })]
6867
}
6968

0 commit comments

Comments
 (0)