fix webmention.js
This commit is contained in:
		
							parent
							
								
									77537c91c5
								
							
						
					
					
						commit
						d9daf7216c
					
				@ -392,7 +392,7 @@ A more detailed example:
 | 
				
			|||||||
    let apiURL = `https://webmention.io/api/mentions.jf2?per-page=${maxWebmentions}&sort-by=${sortBy}&sort-dir=${sortDir}`;
 | 
					    let apiURL = `https://webmention.io/api/mentions.jf2?per-page=${maxWebmentions}&sort-by=${sortBy}&sort-dir=${sortDir}`;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    pages.forEach(function (path) {
 | 
					    pages.forEach(function (path) {
 | 
				
			||||||
      apiURL += `&target[]=${encodeURIComponent('http:' + path)}&target[]=${encodeURIComponent('https:' + path)}&target[]=${encodeURIComponent('https:' + path.endswith('/') ? path.slice(0, -1) : str)}`;
 | 
					      apiURL += `&target[]=${encodeURIComponent('http:' + path)}&target[]=${encodeURIComponent('https:' + path)}&target[]=${encodeURIComponent('https:' + path.endsWith('/') ? path.slice(0, -1) : str)}`;
 | 
				
			||||||
    });
 | 
					    });
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    /** @type {WebmentionResponse} */
 | 
					    /** @type {WebmentionResponse} */
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user