aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2018-03-02 13:15:28 -0800
committerMario Vavti <mario@mariovavti.com>2018-03-07 21:41:48 +0100
commitc8afde6f879817bf7f4f6d39f03a6ab8b10a2cfd (patch)
treeb8574933e5e51b83dbb3b5029684ca741732b48c /include
parent726576363cd7a2efd6498cf361dbf4740679a8ec (diff)
downloadvolse-hubzilla-c8afde6f879817bf7f4f6d39f03a6ab8b10a2cfd.tar.gz
volse-hubzilla-c8afde6f879817bf7f4f6d39f03a6ab8b10a2cfd.tar.bz2
volse-hubzilla-c8afde6f879817bf7f4f6d39f03a6ab8b10a2cfd.zip
process follow from article menu in the background, do not reload page - hubzilla issue #987
Diffstat (limited to 'include')
-rw-r--r--include/conversation.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/conversation.php b/include/conversation.php
index 0bb9c769a..6374267eb 100644
--- a/include/conversation.php
+++ b/include/conversation.php
@@ -1005,7 +1005,7 @@ function thread_author_menu($item, $mode = '') {
$contact = App::$contacts[$item['author_xchan']];
else
if($local_channel && $item['author']['xchan_addr'])
- $follow_url = z_root() . '/follow/?f=&url=' . urlencode($item['author']['xchan_addr']);
+ $follow_url = z_root() . '/follow/?f=&url=' . urlencode($item['author']['xchan_addr']) . '&interactive=0';
if($item['uid'] > 0 && author_is_pmable($item['author'],$contact)) {
@@ -1051,8 +1051,8 @@ function thread_author_menu($item, $mode = '') {
'menu' => 'follow',
'title' => t('Connect'),
'icon' => 'fw',
- 'action' => '',
- 'href' => $follow_url
+ 'action' => 'doFollowAuthor(\'' . $follow_url . '\'); return false;',
+ 'href' => '#',
];
}