Changeset 1529


Ignore:
Timestamp:
05/17/17 12:55:53 (5 weeks ago)
Author:
csnyder
Message:

Social statistics

Location:
rockspot/actions
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • rockspot/actions/person-view.php

    r1528 r1529  
    5353    $object->likes = $likes->totalcount(); 
    5454     
    55     $shares = new fcnyCollection(); 
    56     $shares->load( "aobj.type='message' AND aobj.name LIKE '%/share%' ", $users_table, TRUE, array( 'record' ), 1, 'id+', $object, FALSE, TRUE, TRUE ); 
    57     $object->shares = $shares->totalcount(); 
     55    $shs = new fcnyCollection(); 
     56    $shs->load( "aobj.type='message' AND aobj.name LIKE '%/share%' ", $users_table, TRUE, array( 'record' ), 1, 'id+', $object, FALSE, TRUE, TRUE ); 
     57    $object->shares = $shs->totalcount(); 
    5858     
    5959    $object->popularity = $object->favorites + $object->likes + $object->shares; 
  • rockspot/actions/place-view.php

    r1526 r1529  
    144144    $object->likes = $likes->totalcount(); 
    145145     
    146     $shares = new fcnyCollection(); 
    147     $shares->load( "aobj.type='message' AND aobj.name LIKE '%/share%' ", $users_table, TRUE, array( 'record' ), 1, 'id+', $object, FALSE, TRUE, TRUE ); 
    148     $object->shares = $shares->totalcount(); 
     146    $shs = new fcnyCollection(); 
     147    $shs->load( "aobj.type='message' AND aobj.name LIKE '%/share%' ", $users_table, TRUE, array( 'record' ), 1, 'id+', $object, FALSE, TRUE, TRUE ); 
     148    $object->shares = $shs->totalcount(); 
    149149     
    150150    $object->popularity = $object->favorites + $object->likes + $object->shares; 
Note: See TracChangeset for help on using the changeset viewer.