mirror of
https://github.com/fazo96/ipfs-boards
synced 2025-01-10 12:24:20 +01:00
added missing event
This commit is contained in:
parent
657a18513d
commit
32415f21ae
@ -81,7 +81,7 @@ BoardsAPI.prototype.resolveIPNS = function(n,handler){
|
||||
var cached = this.users[n]
|
||||
if(cached){
|
||||
this.ee.emit(n,cached)
|
||||
console.log(n,'was cached')
|
||||
console.log(n,'was cached',cached)
|
||||
} else {
|
||||
console.log(n,'not cached')
|
||||
}
|
||||
@ -99,6 +99,7 @@ BoardsAPI.prototype.resolveIPNS = function(n,handler){
|
||||
if(this.users[n] != url) this.isUserProfile(url,(isit,err) => {
|
||||
if(isit){
|
||||
console.log(n,'is a user')
|
||||
if(this.users[n] === undefined) this.ee.emit('user',n,url)
|
||||
this.users[n] = url
|
||||
this.ee.emit(n,url)
|
||||
this.backupCache()
|
||||
|
Loading…
Reference in New Issue
Block a user