Improve process feed service
This commit is contained in:
		
							parent
							
								
									77f782758b
								
							
						
					
					
						commit
						5da603fb6f
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		| 
						 | 
					@ -34,12 +34,15 @@ class ProcessFeedService < BaseService
 | 
				
			||||||
      else
 | 
					      else
 | 
				
			||||||
        add_reply!(entry, status)
 | 
					        add_reply!(entry, status)
 | 
				
			||||||
      end
 | 
					      end
 | 
				
			||||||
 | 
					    else
 | 
				
			||||||
 | 
					      return
 | 
				
			||||||
    end
 | 
					    end
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    # If we added a status, go through accounts it mentions and create respective relations
 | 
					    # If we added a status, go through accounts it mentions and create respective relations
 | 
				
			||||||
    # Also record all media attachments for the status and for the reblogged status if present
 | 
					    # Also record all media attachments for the status and for the reblogged status if present
 | 
				
			||||||
    unless status.new_record?
 | 
					    unless status.new_record?
 | 
				
			||||||
      record_remote_mentions(status, entry.xpath('./xmlns:link[@rel="mentioned"]'))
 | 
					      record_remote_mentions(status, entry.xpath('./xmlns:link[@rel="mentioned"]'))
 | 
				
			||||||
 | 
					      record_remote_mentions(status.reblog, entry.xpath('./activity:object/xmlns:link[@rel="mentioned"]')) if status.reblog?
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      process_attachments(entry, status)
 | 
					      process_attachments(entry, status)
 | 
				
			||||||
      process_attachments(entry.xpath('./activity:object'), status.reblog) if status.reblog?
 | 
					      process_attachments(entry.xpath('./activity:object'), status.reblog) if status.reblog?
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue