-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Duplicate emails #6
Comments
Okay, did some debugging for this. Turns out to be a BP problem in v1.5: The at-mention filter causes the activity to be saved twice and thus, the "bp_activity_after_save" hook will run twice causing the duplicate emails. Going to try and think of a workaround. [EDIT] [EDIT 2] |
using a bb hook would require a major re-write of the code, because all the email functions rely on the activity action, links, title, etc. |
Chris Whittle's idea works. Emails are no longer duplicated. I've taken his code and cleaned it up, as well as added extra clarification in the email footer regarding why a person is being sent an email. eg. You're receiving notifications because you are either:
Before the email footer additions, it was kind of vague why a user was receiving emails all the time even though the user had set up groups to use only the "New Topics" option. I haven't tested digest functions with this yet though, but expect a pull request in the coming week. |
Hey Ray, Where did you put the cleaned up/clarified code? |
Please share! It's still an issue in the new one. |
@defunctl @cwhittl My changes for the Group Email plugin were successfully merged into the master branch: The group forum code has been refactored a fair bit so it could use some testers! Please test and give your feedback before Boone and Deryk can decide on releasing the newest update. |
Got it on the site now... We'll let you know if we have any issues! |
@r-a-y installed and testing. I noticed one problem with all versions is that if you started a thread and a user replies, you get a notification that allows you disable all notifications for that group. If you click on that, it changes your status properly to No Email, but you still get reply notifications. Any idea why? |
@defunctl I did not test the "disable notifications for this group" feature, but I believe I know what you're experiencing. Group email settings are different than your individual email notification settings. Navigate to your profile and then click on "Settings" followed by "Notifications". Scroll down and find the "Group Forum" header and please list your settings. Also, can you list down the group email setting as well as the entire email footer that you were sent? I have some ideas, but I just want some confirmation from you before I proceed. |
Ahh I see, both "A member replies after you in a forum topic" and "A member replies in a forum topic you've started" are checked yes. I wonder if there is a way to turn that off for certain groups. Thanks @r-a-y |
Well so far unsubscribe isn't working. Not sure if this is a w3 total cache issue or not, but I still get digests, and when I unsubscribe it says it works, but it never actually does. I just keep getting the digests. This goes for clicking on the link for both the specific group and to unsubscribe from all. Any idea @r-a-y |
Can you be more specific? What are you doing to unsubscribe? In the group header, are you seeing "Current status: No email"? |
Sure. I am no longer a member of the group where I keep getting digests. For example, when I get the email and have this link: http://xxxxx.com/members/xxx/?bpass-action=unsubscribe&access_key=KEY_WAS_HERE to unsubscribe from all, or just for the group: http://xxxxxx.com/members/xxx/?bpass-action=unsubscribe&group=334&access_key=KEY_WAS_HERE |
Hm. It's possible that those links won't work if you're no longer a On 7/4/12 9:17 AM, defunctl wrote:
|
Just clicked the leave group button on the group. I'll join it again and try the links again and let you know. |
View the following thread for the original report and suggested fix:
http://wordpress.org/support/topic/plugin-buddypress-group-email-subscription-duplicates
I haven't tested the fix yet, but have experienced the same issue.
The text was updated successfully, but these errors were encountered: