Skip to content

Commit

Permalink
pub hotfix3
Browse files Browse the repository at this point in the history
  • Loading branch information
dskvr committed Jul 27, 2024
1 parent fef9c71 commit 1635112
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 12 deletions.
2 changes: 1 addition & 1 deletion apps/nocapd/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"@nostrwatch/nocap": "0.5.3",
"@nostrwatch/nocap-every-adapter-default": "1.4.1",
"@nostrwatch/nwcache": "0.1.2",
"@nostrwatch/publisher": "0.5.9",
"@nostrwatch/publisher": "0.5.10",
"@nostrwatch/seed": "0.0.2",
"@nostrwatch/utils": "0.1.3",
"bluebird": "3.7.2",
Expand Down
2 changes: 1 addition & 1 deletion apps/nocapd/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ const showDependencies = async () => {
console.log(`${dep}: ${versionImplemented} == ${versionLatest} ✅`);
}
else {
console.log(`${dep}: ${versionImplemented} -> ${versionLatest} ❌ [UPGRADE NEEDED]`);
console.log(`${dep}: ${versionImplemented} -> ${versionLatest} ❌ [ACTION NEEDED]`);
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion internal/publisher/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nostrwatch/publisher",
"version": "0.5.9",
"version": "0.5.10",
"type": "module",
"description": "Library for publishing nostr.watch relay status and publisher registration events",
"main": "index.js",
Expand Down
24 changes: 15 additions & 9 deletions internal/publisher/src/kinds/Kind30166.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,19 +71,25 @@ export class Kind30166 extends PublisherNocap {
tags.push(['p', info.pubkey])
}

for(const nip in info.supported_nips){
tags.push(['N', String(nip)])
if(info?.supported_nips) {
for(const nip of info.supported_nips){
tags.push(['N', String(nip)])
}
}

for(const lang in info.language_tags){
//TODO: validate language tags, attempt transform on invalids.
tags.push(['L', 'ISO-639-1'])
tags.push(['l', String(lang), 'ISO-639-1'])
if(info?.language_tags) {
for(const lang of info.language_tags){
//TODO: validate language tags, attempt transform on invalids.
tags.push(['L', 'ISO-639-1'])
tags.push(['l', String(lang), 'ISO-639-1'])
}
}

for(const tag in info.tags){
tags.push(['t', String(tag)])
}
if(info?.tags) {
for(const tag of info.tags){
tags.push(['t', String(tag)])
}
}

if (info?.limitation?.auth_required === true){
tags.push(['R', 'auth'])
Expand Down

0 comments on commit 1635112

Please sign in to comment.