Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
06/22/2016 09:17:23 PM (10 years ago)
Author:
r-a-y
Message:

Activity: Fine-tune activity reply screen notifications when activity stream commenting is enabled.

Previously, if "activity stream commenting on blog and forum posts" is
enabled and a reply was created from the Activity Directory page for a
blog post activity item, clicking on the activity reply notification
would not mark the notification as read.

Also, if a member decides to post a comment from the blog post permalink,
a screen notification would not be added.

This commit fixes these issues and adds a unit test.

Props r-a-y, dcavins, imath.

Fixes #7135.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-blogs/bp-blogs-functions.php

    r10825 r10895  
    716716                }
    717717            }
     718
     719            /**
     720             * Fires after an activity comment is added from a WP post comment.
     721             *
     722             * @since 2.6.0
     723             *
     724             * @param int        $activity_id          The activity comment ID.
     725             * @param WP_Comment $post_type_comment    WP Comment object.
     726             * @param array      $activity_args        Activity comment arguments.
     727             * @param object     $activity_post_object The post type tracking args object.
     728             */
     729            do_action( 'bp_blogs_comment_sync_activity_comment', $activity_id, $comment, $activity_args, $activity_post_object );
    718730        }
    719731    }
Note: See TracChangeset for help on using the changeset viewer.