From ee5aa2d4327699ae80c281c6aebbeaf6f06be269 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Sun, 3 Oct 2021 14:53:06 -0400 Subject: [PATCH] Explicitly cast Url objects to string - Some systems do not do this operation automatically and it results in empty DB fields --- src/Navigation/Notifications/Depository/Notify.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Navigation/Notifications/Depository/Notify.php b/src/Navigation/Notifications/Depository/Notify.php index 4c7a1ef33..73eff7694 100644 --- a/src/Navigation/Notifications/Depository/Notify.php +++ b/src/Navigation/Notifications/Depository/Notify.php @@ -104,11 +104,11 @@ class Notify extends BaseDepository $fields = [ 'type' => $Notify->type, 'name' => $Notify->name, - 'url' => $Notify->url, - 'photo' => $Notify->photo, + 'url' => (string)$Notify->url, + 'photo' => (string)$Notify->photo, 'msg' => $Notify->msg, 'uid' => $Notify->uid, - 'link' => $Notify->link, + 'link' => (string)$Notify->link, 'iid' => $Notify->itemId, 'parent' => $Notify->parent, 'seen' => $Notify->seen,