mirror of
				https://codeberg.org/yeentown/barkey.git
				synced 2025-10-31 05:24:13 +00:00 
			
		
		
		
	merge: allow lookup / search for http URLs (!457)
				
					
				
			View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/457 Approved-by: Luna <her@mint.lgbt> Approved-by: Amelia Yukii <amelia.yukii@shourai.de>
This commit is contained in:
		
						commit
						061cc40384
					
				
					 3 changed files with 3 additions and 3 deletions
				
			
		|  | @ -85,7 +85,7 @@ async function search() { | ||||||
| 
 | 
 | ||||||
| 	if (query == null || query === '') return; | 	if (query == null || query === '') return; | ||||||
| 
 | 
 | ||||||
| 	if (query.startsWith('https://')) { | 	if (query.startsWith('http://') || query.startsWith('https://')) { | ||||||
| 		const promise = misskeyApi('ap/show', { | 		const promise = misskeyApi('ap/show', { | ||||||
| 			uri: query, | 			uri: query, | ||||||
| 		}); | 		}); | ||||||
|  |  | ||||||
|  | @ -48,7 +48,7 @@ async function search() { | ||||||
| 
 | 
 | ||||||
| 	if (query == null || query === '') return; | 	if (query == null || query === '') return; | ||||||
| 
 | 
 | ||||||
| 	if (query.startsWith('https://')) { | 	if (query.startsWith('http://') || query.startsWith('https://')) { | ||||||
| 		const promise = misskeyApi('ap/show', { | 		const promise = misskeyApi('ap/show', { | ||||||
| 			uri: query, | 			uri: query, | ||||||
| 		}); | 		}); | ||||||
|  |  | ||||||
|  | @ -28,7 +28,7 @@ export async function lookup(router?: Router) { | ||||||
| 		return; | 		return; | ||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
| 	if (query.startsWith('https://')) { | 	if (query.startsWith('http://') || query.startsWith('https://')) { | ||||||
| 		const promise = misskeyApi('ap/show', { | 		const promise = misskeyApi('ap/show', { | ||||||
| 			uri: query, | 			uri: query, | ||||||
| 		}); | 		}); | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue