ssb: Fix replication hops usage.  Thanks @Cashew.
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				Build Tilde Friends / Build-All (push) Successful in 16m15s
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	Build Tilde Friends / Build-All (push) Successful in 16m15s
				
			This commit is contained in:
		| @@ -1003,10 +1003,10 @@ static void _tf_ssb_rpc_ebt_replicate_send_clock_work(tf_ssb_connection_t* conne | ||||
| 	tf_ssb_t* ssb = tf_ssb_connection_get_ssb(connection); | ||||
| 	JSValue full_clock = JS_NewObject(context); | ||||
|  | ||||
| 	int64_t depth = _get_global_setting_int64(ssb, "replication_hops", -1); | ||||
| 	int64_t depth = _get_global_setting_int64(ssb, "replication_hops", 2); | ||||
|  | ||||
| 	/* Ask for every identity we know is being followed from local accounts. */ | ||||
| 	const char** visible = tf_ssb_db_get_all_visible_identities(ssb, depth - 1); | ||||
| 	const char** visible = tf_ssb_db_get_all_visible_identities(ssb, depth); | ||||
| 	for (int i = 0; visible[i]; i++) | ||||
| 	{ | ||||
| 		int64_t sequence = 0; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user