From: Hypolite Petovan <hypolite@mrpetovan.com>
Date: Wed, 9 Nov 2022 00:31:09 +0000 (-0500)
Subject: Remove superfluous calls to DI::baseUrl in Contact:photoMenu
X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=386c08aa05ff2ff180e06de6f4789b85e54e8eff;p=friendica.git

Remove superfluous calls to DI::baseUrl in Contact:photoMenu
---

diff --git a/src/Model/Contact.php b/src/Model/Contact.php
index 355127de34..64ce451e46 100644
--- a/src/Model/Contact.php
+++ b/src/Model/Contact.php
@@ -1149,7 +1149,7 @@ class Contact
 		$sparkle = false;
 		if (($contact['network'] === Protocol::DFRN) && !$contact['self'] && empty($contact['pending'])) {
 			$sparkle = true;
-			$profile_link = DI::baseUrl() . '/redir/' . $contact['id'];
+			$profile_link = 'redir/' . $contact['id'];
 		} else {
 			$profile_link = $contact['url'];
 		}
@@ -1165,12 +1165,12 @@ class Contact
 		}
 
 		if (self::canReceivePrivateMessages($contact) && empty($contact['pending'])) {
-			$pm_url = DI::baseUrl() . '/message/new/' . $contact['id'];
+			$pm_url = 'message/new/' . $contact['id'];
 		}
 
-		$contact_url = DI::baseUrl() . '/contact/' . $contact['id'];
+		$contact_url = 'contact/' . $contact['id'];
 
-		$posts_link = DI::baseUrl() . '/contact/' . $contact['id'] . '/conversations';
+		$posts_link = 'contact/' . $contact['id'] . '/conversations';
 
 		$follow_link = '';
 		$unfollow_link = '';