at master 22 lines 1.2 kB view raw
1diff --git a/frigate/comms/webpush.py b/frigate/comms/webpush.py 2index c5986d45..b767e19e 100644 3--- a/frigate/comms/webpush.py 4+++ b/frigate/comms/webpush.py 5@@ -17,7 +17,7 @@ from titlecase import titlecase 6 from frigate.comms.base_communicator import Communicator 7 from frigate.comms.config_updater import ConfigSubscriber 8 from frigate.config import FrigateConfig 9-from frigate.const import CONFIG_DIR 10+from frigate.const import BASE_DIR, CONFIG_DIR 11 from frigate.models import User 12 13 logger = logging.getLogger(__name__) 14@@ -333,7 +333,7 @@ class WebPushClient(Communicator): # type: ignore[misc] 15 16 title = f"{titlecase(', '.join(sorted_objects).replace('_', ' '))}{' was' if state == 'end' else ''} detected in {titlecase(', '.join(payload['after']['data']['zones']).replace('_', ' '))}" 17 message = f"Detected on {titlecase(camera.replace('_', ' '))}" 18- image = f"{payload['after']['thumb_path'].replace('/media/frigate', '')}" 19+ image = f"{payload['after']['thumb_path'].replace(BASE_DIR, '')}" 20 21 # if event is ongoing open to live view otherwise open to recordings view 22 direct_url = f"/review?id={reviewId}" if state == "end" else f"/#{camera}"