]> git.mxchange.org Git - friendica.git/blobdiff - src/Content/Item.php
messages.po and and corrected typo in comment
[friendica.git] / src / Content / Item.php
index 5321cf14646ce39b69a0b6b658928a693289087b..4fb1f85d6245f66646e3fc991ef0678ef20a3a6a 100644 (file)
@@ -345,7 +345,7 @@ class Item
                        'url' => $item['author-link'],
                ];
                $profile_link = Contact::magicLinkByContact($author, $item['author-link']);
-               $sparkle = (strpos($profile_link, 'redir/') === 0);
+               $sparkle = (strpos($profile_link, 'contact/redir/') === 0);
 
                $cid = 0;
                $pcid = $item['author-id'];
@@ -361,7 +361,7 @@ class Item
 
                if ($sparkle) {
                        $status_link = $profile_link . '/status';
-                       $photos_link = str_replace('/profile/', '/photos/', $profile_link);
+                       $photos_link = $profile_link . '/photos';
                        $profile_link = $profile_link . '/profile';
                }
 
@@ -729,7 +729,7 @@ class Item
                                        'message_id' => $shared['uri'],
                                        'comment'    => $item['body'],
                                        'shared'     => $shared['body'],
-                               ];                              
+                               ];
                        }
                }
 
@@ -737,7 +737,7 @@ class Item
        }
 
        /**
-        * Add a link to a shared post at the end of the post 
+        * Add a link to a shared post at the end of the post
         *
         * @param string  $body
         * @param integer $quote_uri_id