Use likes and shares totalItems on status creations and updates (#32620)
		
	This commit is contained in:
		
					parent
					
						
							
								77cd16f4ee
							
						
					
				
			
			
				commit
				
					
						9074c1fac9
					
				
			
		
					 14 changed files with 326 additions and 14 deletions
				
			
		|  | @ -84,11 +84,11 @@ class REST::StatusSerializer < ActiveModel::Serializer | |||
|   end | ||||
| 
 | ||||
|   def reblogs_count | ||||
|     relationships&.attributes_map&.dig(object.id, :reblogs_count) || object.reblogs_count | ||||
|     object.untrusted_reblogs_count || relationships&.attributes_map&.dig(object.id, :reblogs_count) || object.reblogs_count | ||||
|   end | ||||
| 
 | ||||
|   def favourites_count | ||||
|     relationships&.attributes_map&.dig(object.id, :favourites_count) || object.favourites_count | ||||
|     object.untrusted_favourites_count || relationships&.attributes_map&.dig(object.id, :favourites_count) || object.favourites_count | ||||
|   end | ||||
| 
 | ||||
|   def favourited | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue