mirror of
				https://codeberg.org/yeentown/barkey.git
				synced 2025-11-03 23:14:13 +00:00 
			
		
		
		
	merge: don't double-url-encode rss urls (!857)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/857 Approved-by: Marie <github@yuugi.dev> Approved-by: Hazelnoot <acomputerdog@gmail.com>
This commit is contained in:
		
						commit
						771fcf00c0
					
				
					 2 changed files with 2 additions and 2 deletions
				
			
		packages/frontend/src/widgets
| 
						 | 
					@ -70,7 +70,7 @@ const items = computed(() => rawItems.value.slice(0, widgetProps.maxEntries));
 | 
				
			||||||
const fetching = ref(true);
 | 
					const fetching = ref(true);
 | 
				
			||||||
const fetchEndpoint = computed(() => {
 | 
					const fetchEndpoint = computed(() => {
 | 
				
			||||||
	const url = new URL('/api/fetch-rss', base);
 | 
						const url = new URL('/api/fetch-rss', base);
 | 
				
			||||||
	url.searchParams.set('url', encodeURIComponent(widgetProps.url));
 | 
						url.searchParams.set('url', widgetProps.url);
 | 
				
			||||||
	return url;
 | 
						return url;
 | 
				
			||||||
});
 | 
					});
 | 
				
			||||||
const intervalClear = ref<(() => void) | undefined>();
 | 
					const intervalClear = ref<(() => void) | undefined>();
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -99,7 +99,7 @@ const items = computed(() => {
 | 
				
			||||||
const fetching = ref(true);
 | 
					const fetching = ref(true);
 | 
				
			||||||
const fetchEndpoint = computed(() => {
 | 
					const fetchEndpoint = computed(() => {
 | 
				
			||||||
	const url = new URL('/api/fetch-rss', base);
 | 
						const url = new URL('/api/fetch-rss', base);
 | 
				
			||||||
	url.searchParams.set('url', encodeURIComponent(widgetProps.url));
 | 
						url.searchParams.set('url', widgetProps.url);
 | 
				
			||||||
	return url;
 | 
						return url;
 | 
				
			||||||
});
 | 
					});
 | 
				
			||||||
const intervalClear = ref<(() => void) | undefined>();
 | 
					const intervalClear = ref<(() => void) | undefined>();
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue