From c102a4e428dd827667a3d8194523e94358cde5a5 Mon Sep 17 00:00:00 2001 From: friendica Date: Thu, 22 Aug 2013 14:37:08 -0700 Subject: perform a refresh_all operation after changing premium status so that everybody will catch it quickly and not in a day or two. --- mod/connect.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mod/connect.php b/mod/connect.php index 6bf53eb2b..5731d050d 100644 --- a/mod/connect.php +++ b/mod/connect.php @@ -38,12 +38,14 @@ function connect_post(&$a) { $text = escape_tags($_POST['text']); $channel = $a->get_channel(); - if(($channel['channel_pageflags'] & PAGE_PREMIUM) != $premium) + if(($channel['channel_pageflags'] & PAGE_PREMIUM) != $premium) { $r = q("update channel set channel_pageflags = channel_pageflags ^ %d where channel_id = %d limit 1", intval(PAGE_PREMIUM), intval(local_user()) ); - set_pconfig($a->profile['profile_uid'],'system','selltext',$text); + proc_exec('php','include/notifier.php','refresh_all',$channel['channel_id']); + } + set_pconfig($channel['channel_id'],'system','selltext',$text); goaway(z_root() . '/' . $a->query_string); } -- cgit v1.2.3