]> git.mxchange.org Git - friendica.git/commitdiff
Explicitly cast Url objects to string
authorHypolite Petovan <hypolite@mrpetovan.com>
Sun, 3 Oct 2021 18:53:06 +0000 (14:53 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Sun, 3 Oct 2021 18:53:06 +0000 (14:53 -0400)
- Some systems do not do this operation automatically and it results in empty DB fields

src/Navigation/Notifications/Depository/Notify.php

index 4c7a1ef33dde5fc29df2543ab842b542c37c4c9b..73eff7694d9703af999d916715a041537aed98cb 100644 (file)
@@ -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,