Permalink
Browse files

If new topic and user is subscribed to 'All Mail', clarify email footer.

  • Loading branch information...
1 parent 8e195d6 commit 8a964d6277ebea684f389271b9985a4596b09aa6 @r-a-y r-a-y committed May 20, 2012
Showing with 7 additions and 2 deletions.
  1. +7 −2 bp-activity-subscription-functions.php
@@ -155,10 +155,15 @@ function ass_group_notification_forum_posts( $post_id ) {
$send_it = true;
$notice .= "\n" . __( 'Your email setting for this group is: ', 'bp-ass' ) . ass_subscribe_translate( $group_status );
-
+
// until we get a real follow link, this will have to do
- if ( $group_status == 'sub' )
+ if ( $group_status == 'sub' ) {
$notice .= __( ", therefore you won't receive replies to this topic. To get them, click the link to view this topic on the web then click the 'Follow this topic' button.", 'bp-ass' );
+ }
+ // user's group setting is "All Mail"
+ elseif ( $group_status == 'supersub' ) {
+ $notice .= "\n" . sprintf( __( 'To change your email setting for this group, please log in and go to: %s', 'bp-ass' ), $settings_link );
+ }
$notice .= "\n\n" . ass_group_unsubscribe_links( $user_id );
}

0 comments on commit 8a964d6

Please sign in to comment.