"remote_follow" is now "remote_comment"
This commit is contained in:
parent
d64bb0dd8f
commit
efddd248f7
|
@ -786,7 +786,7 @@ class Profile
|
||||||
$_SESSION['visitor_handle'] = $visitor['addr'];
|
$_SESSION['visitor_handle'] = $visitor['addr'];
|
||||||
$_SESSION['visitor_home'] = $visitor['url'];
|
$_SESSION['visitor_home'] = $visitor['url'];
|
||||||
$_SESSION['my_url'] = $visitor['url'];
|
$_SESSION['my_url'] = $visitor['url'];
|
||||||
$_SESSION['remote_follow'] = Probe::getRemoteFollowLink($visitor['url']);
|
$_SESSION['remote_comment'] = Probe::getRemoteFollowLink($visitor['url']);
|
||||||
|
|
||||||
Session::setVisitorsContacts();
|
Session::setVisitorsContacts();
|
||||||
|
|
||||||
|
|
|
@ -393,9 +393,9 @@ class Post
|
||||||
}
|
}
|
||||||
|
|
||||||
// Fetching of Diaspora posts doesn't always work. There are issues with reshares and possibly comments
|
// 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'),
|
$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 {
|
} else {
|
||||||
$remote_comment = '';
|
$remote_comment = '';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue