]> git.mxchange.org Git - friendica.git/commitdiff
"remote_follow" is now "remote_comment"
authorMichael <heluecht@pirati.ca>
Tue, 18 Feb 2020 17:31:02 +0000 (17:31 +0000)
committerMichael <heluecht@pirati.ca>
Tue, 18 Feb 2020 17:31:02 +0000 (17:31 +0000)
src/Model/Profile.php
src/Object/Post.php

index 4956ef9bb30d456600db5565426af217175f7e5b..cf9e7c62026c1f3c7e7648e4506066191ece1a57 100644 (file)
@@ -786,7 +786,7 @@ class Profile
                $_SESSION['visitor_handle'] = $visitor['addr'];
                $_SESSION['visitor_home'] = $visitor['url'];
                $_SESSION['my_url'] = $visitor['url'];
-               $_SESSION['remote_follow'] = Probe::getRemoteFollowLink($visitor['url']);
+               $_SESSION['remote_comment'] = Probe::getRemoteFollowLink($visitor['url']);
 
                Session::setVisitorsContacts();
 
index dc4fc51f5fba2b2d2db1faefa34feeb1334d2c85..5f264c988bab5124c8e3fadd097dac28046aaf5d 100644 (file)
@@ -393,9 +393,9 @@ class Post
                }
 
                // Fetching of Diaspora posts doesn't always work. There are issues with reshares and possibly comments
-               if (($item['network'] != Protocol::DIASPORA) && empty($comment) && !empty(Session::get('remote_follow'))) {
+               if (($item['network'] != Protocol::DIASPORA) && empty($comment) && !empty(Session::get('remote_comment'))) {
                        $remote_comment = [DI::l10n()->t('Comment this item on your system'), DI::l10n()->t('remote comment'),
-                               str_replace('{uri}', urlencode($item['uri']), Session::get('remote_follow'))];
+                               str_replace('{uri}', urlencode($item['uri']), Session::get('remote_comment'))];
                } else {
                        $remote_comment = '';
                }