mirror of
				https://codeberg.org/yeentown/barkey.git
				synced 2025-11-04 07:24:13 +00:00 
			
		
		
		
	fix lint errors in NoteCreateService & NoteEditService
This commit is contained in:
		
							parent
							
								
									2d7918a9b7
								
							
						
					
					
						commit
						feeaf26641
					
				
					 2 changed files with 3 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -486,10 +486,10 @@ export class NoteCreateService implements OnApplicationShutdown {
 | 
			
		|||
 | 
			
		||||
		// should really not happen, but better safe than sorry
 | 
			
		||||
		if (data.reply?.id === insert.id) {
 | 
			
		||||
			throw new Error("A note can't reply to itself");
 | 
			
		||||
			throw new Error('A note can\'t reply to itself');
 | 
			
		||||
		}
 | 
			
		||||
		if (data.renote?.id === insert.id) {
 | 
			
		||||
			throw new Error("A note can't renote itself");
 | 
			
		||||
			throw new Error('A note can\'t renote itself');
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		if (data.uri != null) insert.uri = data.uri;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -309,7 +309,7 @@ export class NoteEditService implements OnApplicationShutdown {
 | 
			
		|||
 | 
			
		||||
		if (this.isRenote(data)) {
 | 
			
		||||
			if (data.renote.id === oldnote.id) {
 | 
			
		||||
				throw new Error("A note can't renote itself");
 | 
			
		||||
				throw new Error('A note can\'t renote itself');
 | 
			
		||||
			}
 | 
			
		||||
 | 
			
		||||
			switch (data.renote.visibility) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue