Add support for language preferences for trending statuses and links (#18288)
This commit is contained in:
		
					parent
					
						
							
								678fc4d292
							
						
					
				
			
			
				commit
				
					
						45ebdb72ca
					
				
			
		
					 29 changed files with 274 additions and 121 deletions
				
			
		|  | @ -28,7 +28,9 @@ class Api::V1::Trends::LinksController < Api::BaseController | |||
|   end | ||||
| 
 | ||||
|   def links_from_trends | ||||
|     Trends.links.query.allowed.in_locale(content_locale) | ||||
|     scope = Trends.links.query.allowed.in_locale(content_locale) | ||||
|     scope = scope.filtered_for(current_account) if user_signed_in? | ||||
|     scope | ||||
|   end | ||||
| 
 | ||||
|   def insert_pagination_headers | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue