Use Contact User as Relay, Report, Subscribe. (#9661)
* Use Contact User as Relay, Report, Subscribe. * Use Account.representative to fetch contact user. * Use find_local. * No reason to use Account.representative in subscribe_service. * Don't required representative! * Fallback is included in Account.representative method.
This commit is contained in:
		
					parent
					
						
							
								45899cfa69
							
						
					
				
			
			
				commit
				
					
						fae32634b1
					
				
			
		
					 3 changed files with 6 additions and 2 deletions
				
			
		|  | @ -68,7 +68,7 @@ class Relay < ApplicationRecord | |||
|   end | ||||
| 
 | ||||
|   def some_local_account | ||||
|     @some_local_account ||= Account.local.find_by(suspended: false) | ||||
|     @some_local_account ||= Account.representative | ||||
|   end | ||||
| 
 | ||||
|   def ensure_disabled | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue