mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 11:28:35 -05:00
[PR #10634] [MERGED] fix: Handle no location permission #38202
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/10634
Author: @sebdanielsson
Created: 2/23/2025
Status: ✅ Merged
Merged: 2/23/2025
Merged by: @tjbck
Base:
dev← Head:handle-no-location-access📝 Commits (1)
b00e14eHandle no location permission📊 Changes
2 files changed (+17 additions, -8 deletions)
View changed files
📝
src/lib/components/chat/MessageInput/Commands/Prompts.svelte(+7 -1)📝
src/lib/utils/index.ts(+10 -7)📄 Description
Changelog Entry
Description
This PR contains a fix for when the user has not given Open-WebUI access to the users location. Instead of erroring out and refusing to send the message the variable {{USER_LOCATION}} is now replaced with LOCATION_UNKNOWN. Additionally when the user is using {{USER_LOCATION}} in a slash prompt, an error toast is displayed notifying the user that location data is not available.
Fixed
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.