Make sure endpoints["sharedInbox"] exists before using it
							parent
							
								
									3a81f7784d
								
							
						
					
					
						commit
						6ca250bcf4
					
				| 
						 | 
					@ -34,7 +34,9 @@ func NewRemoteActor(iri string) (RemoteActor, error) {
 | 
				
			||||||
	var sharedInbox string
 | 
						var sharedInbox string
 | 
				
			||||||
	if info["endpoints"] != nil {
 | 
						if info["endpoints"] != nil {
 | 
				
			||||||
		endpoints = info["endpoints"].(map[string]interface{})
 | 
							endpoints = info["endpoints"].(map[string]interface{})
 | 
				
			||||||
		sharedInbox = endpoints["sharedInbox"].(string)
 | 
							if val, ok := endpoints["sharedInbox"]; ok {
 | 
				
			||||||
 | 
								sharedInbox = val.(string)
 | 
				
			||||||
 | 
							} 
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	return RemoteActor{
 | 
						return RemoteActor{
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue