Removed difficulty adjuster from pow
Fixed board popularity cache
This commit is contained in:
		
							parent
							
								
									5b3d76067a
								
							
						
					
					
						commit
						646a7c0b80
					
				
					 6 changed files with 12 additions and 15 deletions
				
			
		|  | @ -108,6 +108,7 @@ def remove_from_cache(board, name): | |||
| 
 | ||||
| @flask_blueprint.route('/circles/getpopular/<count>') | ||||
| def get_popular(count): | ||||
|     read_only_cache.refresh() | ||||
|     boards = json.loads(read_only_cache.get_raw_json()) | ||||
|     for board in boards: | ||||
|         boards[board] = len(boards[board]) | ||||
|  |  | |||
|  | @ -94,6 +94,11 @@ function appendMessages(msg, blockHash, beforeHash, channel) { | |||
|         if (typeof msg['meta']['signer'] != 'undefined' && msg['meta']['signer'].length > 0){ | ||||
|             div[3].textContent = msg['meta']['signer'].substr(0, 5) | ||||
|             setHumanReadableIDOnPost(div[3], msg['meta']['signer']) | ||||
|             div[3].onclick = function(){ | ||||
|                 navigator.clipboard.writeText(div[3].title).then(function() { | ||||
|                     PNotify.notice("Copied poster identity to clipboard") | ||||
|                 }) | ||||
|             } | ||||
|             div[3].title = msg['meta']['signer'] | ||||
|             userIcon(msg['meta']['signer']).then(function(data){ | ||||
|                 identicon[0].src = "data:image/svg+xml;base64," + data | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue