Making public pages responsive, removing reblogs/favs counts from them
This commit is contained in:
		
					parent
					
						
							
								d74da1a89a
							
						
					
				
			
			
				commit
				
					
						188c6f326b
					
				
			
		
					 8 changed files with 31 additions and 57 deletions
				
			
		|  | @ -11,15 +11,6 @@ class StreamEntriesController < ApplicationController | |||
|     if @stream_entry.activity_type == 'Status' | ||||
|       @ancestors   = @stream_entry.activity.ancestors | ||||
|       @descendants = @stream_entry.activity.descendants | ||||
| 
 | ||||
|       if user_signed_in? | ||||
|         status_ids  = [@stream_entry.activity_id] + @ancestors.map(&:id) + @descendants.map(&:id) | ||||
|         @favourited = Status.favourites_map(status_ids, current_user.account_id) | ||||
|         @reblogged  = Status.reblogs_map(status_ids, current_user.account_id) | ||||
|       else | ||||
|         @favourited = {} | ||||
|         @reblogged  = {} | ||||
|       end | ||||
|     end | ||||
| 
 | ||||
|     respond_to do |format| | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue