Skip to:
Content

BuddyPress.org

Changeset 2397 for trunk/bp-groups.php


Ignore:
Timestamp:
01/21/2010 03:47:02 PM (17 years ago)
Author:
apeatling
Message:

Fixes #1598 - broken sitewide notices

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-groups.php

    r2389 r2397  
    13331333        extract( $r, EXTR_SKIP );
    13341334
    1335         return bp_activity_add( array( 'user_id' => $user_id, 'action' => $action, 'content' => $content, 'primary_link' => $primary_link, 'component' => $component, 'type' => $type, 'item_id' => $item_id, 'secondary_item_id' => $secondary_item_id, 'recorded_time' => $recorded_time, 'hide_sitewide' => $hide_sitewide ) );
     1335        /* Check for an existing entry and update if one exists. */
     1336        $id = bp_activity_get_activity_id( array(
     1337                'user_id' => $user_id,
     1338                'component' => $component,
     1339                'type' => $type,
     1340                'item_id' => $item_id,
     1341                'secondary_item_id' => $secondary_item_id
     1342        ) );
     1343
     1344        return bp_activity_add( array( 'id' => $id, 'user_id' => $user_id, 'action' => $action, 'content' => $content, 'primary_link' => $primary_link, 'component' => $component, 'type' => $type, 'item_id' => $item_id, 'secondary_item_id' => $secondary_item_id, 'recorded_time' => $recorded_time, 'hide_sitewide' => $hide_sitewide ) );
    13361345}
    13371346
Note: See TracChangeset for help on using the changeset viewer.