mirror of
				https://codeberg.org/yeentown/barkey.git
				synced 2025-11-03 23:14:13 +00:00 
			
		
		
		
	Fix typo
This commit is contained in:
		
							parent
							
								
									d2a7c56149
								
							
						
					
					
						commit
						ac5d798cde
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -48,7 +48,7 @@ export default define(meta, (ps, user) => new Promise(async (res, rej) => {
 | 
			
		|||
	} else if (ps.url) {
 | 
			
		||||
		const isInternalStorageUrl = ps.url.startsWith(config.drive_url);
 | 
			
		||||
		if (isInternalStorageUrl) {
 | 
			
		||||
			// Extract file if from url
 | 
			
		||||
			// Extract file ID from url
 | 
			
		||||
			// e.g.
 | 
			
		||||
			// http://misskey.local/files/foo?original=bar --> foo
 | 
			
		||||
			const fileId = new mongo.ObjectID(ps.url.replace(config.drive_url, '').replace(/\?(.*)$/, '').replace(/\//g, ''));
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue