forked from MapComplete/MapComplete
		
	Add 'subs' to title of IMGUR images, fixes #771
This commit is contained in:
		
							parent
							
								
									8b444156c6
								
							
						
					
					
						commit
						9086713657
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -112,7 +112,7 @@ export class ImageUploadFlow extends Toggle {
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            const title = matchingLayer?.title?.GetRenderValue(tags)?.ConstructElement()?.innerText ?? tags.name ?? "Unknown area";
 | 
					            const title = matchingLayer?.title?.GetRenderValue(tags)?.Subs(tags)?.ConstructElement()?.innerText ?? tags.name ?? "https//osm.org/"+tags.id;
 | 
				
			||||||
            const description = [
 | 
					            const description = [
 | 
				
			||||||
                "author:" + state.osmConnection.userDetails.data.name,
 | 
					                "author:" + state.osmConnection.userDetails.data.name,
 | 
				
			||||||
                "license:" + license,
 | 
					                "license:" + license,
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue