aboutsummaryrefslogtreecommitdiffstats
path: root/include/items.php
diff options
context:
space:
mode:
authorMike Macgirvin <mike@macgirvin.com>2010-10-26 19:01:16 -0700
committerMike Macgirvin <mike@macgirvin.com>2010-10-26 19:01:16 -0700
commiteb5e6aae7273fef06a06f983fe78aaad737aa729 (patch)
tree355b1518f1553c970d3cbad7b8e923a66b64dc9c /include/items.php
parentd453560be9142067391fc0213d5fd5066667e54f (diff)
downloadvolse-hubzilla-eb5e6aae7273fef06a06f983fe78aaad737aa729.tar.gz
volse-hubzilla-eb5e6aae7273fef06a06f983fe78aaad737aa729.tar.bz2
volse-hubzilla-eb5e6aae7273fef06a06f983fe78aaad737aa729.zip
a few more fsw tweaks
Diffstat (limited to 'include/items.php')
-rw-r--r--include/items.php12
1 files changed, 8 insertions, 4 deletions
diff --git a/include/items.php b/include/items.php
index 6cdf5f0f5..fa07727de 100644
--- a/include/items.php
+++ b/include/items.php
@@ -935,8 +935,12 @@ function consume_feed($xml,$importer,$contact, &$hub) {
if(! is_array($contact))
return;
- if($contact['network'] === 'stat' && strlen($datarray['title']))
- unset($datarray['title']);
+ if($contact['network'] === 'stat') {
+ if(strlen($datarray['title']))
+ unset($datarray['title']);
+ if(($contact['rel'] == REL_VIP) || ($contact['rel'] == REL_BUD))
+ $datarray['last-child'] = 1;
+ }
$datarray['parent-uri'] = $item_id;
$datarray['uid'] = $importer['uid'];
$datarray['contact-id'] = $contact['id'];
@@ -960,7 +964,7 @@ function new_follower($importer,$contact,$datarray,$item) {
if(is_array($contact)) {
if($contact['network'] == 'stat' && $contact['rel'] == REL_FAN) {
- $q("UPDATE `contact` SET `rel` = %d WHERE `id` = %d AND `uid` = %d LIMIT 1",
+ $r = q("UPDATE `contact` SET `rel` = %d WHERE `id` = %d AND `uid` = %d LIMIT 1",
intval(REL_BUD),
intval($contact['id']),
intval($importer['uid'])
@@ -1010,7 +1014,7 @@ function new_follower($importer,$contact,$datarray,$item) {
function lose_follower($importer,$contact,$datarray,$item) {
- if($contact['rel'] == REL_BUD) {
+ if(($contact['rel'] == REL_BUD) || ($contact['rel'] == REL_FAN)) {
q("UPDATE `contact` SET `rel` = %d WHERE `id` = %d LIMIT 1",
intval(REL_FAN),
intval($contact['id'])