diff options
author | M. Dent <dentm42@gmail.com> | 2018-09-29 00:17:55 +0200 |
---|---|---|
committer | M. Dent <dentm42@gmail.com> | 2018-09-29 00:17:55 +0200 |
commit | ba4a8aa7623038fd9926b58d826e7cb733176b48 (patch) | |
tree | b714359bdc9c056376c6f3780e8edb0e066bf73f /Zotlabs/Module/Item.php | |
parent | 2904e58a9fea6441202d1f9f7a3304a2d2b1429c (diff) | |
parent | 5f992ffe154ed9e2b225c9a1b3d7c47d39e41d34 (diff) | |
download | volse-hubzilla-ba4a8aa7623038fd9926b58d826e7cb733176b48.tar.gz volse-hubzilla-ba4a8aa7623038fd9926b58d826e7cb733176b48.tar.bz2 volse-hubzilla-ba4a8aa7623038fd9926b58d826e7cb733176b48.zip |
Merge branch 'remove-servicelevel-logic' into 'dev'
Remove servicelevel logic
See merge request hubzilla/core!1291
Diffstat (limited to 'Zotlabs/Module/Item.php')
-rw-r--r-- | Zotlabs/Module/Item.php | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/Zotlabs/Module/Item.php b/Zotlabs/Module/Item.php index a24d6da9c..2ee639874 100644 --- a/Zotlabs/Module/Item.php +++ b/Zotlabs/Module/Item.php @@ -1165,28 +1165,6 @@ class Item extends \Zotlabs\Web\Controller { return $ret; } - // auto-upgrade beginner (techlevel 0) accounts - if they have at least two friends and ten posts - // and have uploaded something (like a profile photo), promote them to level 1. - - $a = q("select account_id, account_level from account where account_id = (select channel_account_id from channel where channel_id = %d limit 1)", - intval($channel_id) - ); - if((! intval($a[0]['account_level'])) && intval($r[0]['total']) > 10) { - $x = q("select count(abook_id) as total from abook where abook_channel = %d", - intval($channel_id) - ); - if($x && intval($x[0]['total']) > 2) { - $y = q("select count(id) as total from attach where uid = %d", - intval($channel_id) - ); - if($y && intval($y[0]['total']) > 1) { - q("update account set account_level = 1 where account_id = %d limit 1", - intval($a[0]['account_id']) - ); - } - } - } - if (!$iswebpage) { $max = engr_units_to_bytes(service_class_fetch($channel_id,'total_items')); if(! service_class_allows($channel_id,'total_items',$r[0]['total'])) { |