Fire event when someone retweets us. Fixes #76
This commit is contained in:
		
							parent
							
								
									951669e972
								
							
						
					
					
						commit
						20dff3a148
					
				
					 1 changed files with 6 additions and 0 deletions
				
			
		|  | @ -270,6 +270,12 @@ module Ebooks | |||
|         return unless ev.text # If it's not a text-containing tweet, ignore it | ||||
|         return if ev.user.id == @user.id # Ignore our own tweets | ||||
| 
 | ||||
|         if ev.retweet? && ev.retweeted_tweet.user.id == @user.id | ||||
|           # Someone retweeted our tweet! | ||||
|           fire(:retweet, ev) | ||||
|           return | ||||
|         end | ||||
| 
 | ||||
|         meta = meta(ev) | ||||
| 
 | ||||
|         if blacklisted?(ev.user.screen_name) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Jaiden Mispy
						Jaiden Mispy