mirror of
https://github.com/fazo96/ipfs-boards
synced 2025-01-25 14:54:19 +01:00
ooops
This commit is contained in:
parent
8cef8bfdba
commit
4f343ed813
@ -32,7 +32,9 @@ module.exports = function(boardsAPI){
|
|||||||
var uid = props.params.userid
|
var uid = props.params.userid
|
||||||
if(uid === 'me') uid = boards.id
|
if(uid === 'me') uid = boards.id
|
||||||
ee.on('boards for '+uid,l => {
|
ee.on('boards for '+uid,l => {
|
||||||
if(!this.isMounted() || props.params.userid !== uid) return true
|
var u2id = props.params.userid
|
||||||
|
if(u2id === 'me') u2id = boards.id
|
||||||
|
if(!this.isMounted() || u2id !== uid) return true
|
||||||
this.setState({ boards: l })
|
this.setState({ boards: l })
|
||||||
})
|
})
|
||||||
boards.getProfile(uid,(err,res) => {
|
boards.getProfile(uid,(err,res) => {
|
||||||
@ -52,7 +54,6 @@ module.exports = function(boardsAPI){
|
|||||||
var ee = boards.getEventEmitter()
|
var ee = boards.getEventEmitter()
|
||||||
if(boards.isInit || this.state.api){
|
if(boards.isInit || this.state.api){
|
||||||
var uid = this.props.params.userid
|
var uid = this.props.params.userid
|
||||||
if(uid === 'me') uid = boards.id
|
|
||||||
this.downloadProfile(boards,this.props)
|
this.downloadProfile(boards,this.props)
|
||||||
this.setState({ init: true })
|
this.setState({ init: true })
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user