1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Prevent duplicate alerts for profile post comments

Discussion in 'XenForo Suggestions' started by Chris D, Aug 15, 2014.

  1. Chris D

    Chris D XenForo Developer Staff Member

    I just went away from my PC for less than an hour, and in that time, 9 alerts were generated. Most of them were related to new comments made on a profile post I had previously commented on.

    I know there's no concept of marking profile posts and comments as "read" at the moment and it's probably a bit trickier to do it due to the presentation of the content and maybe overkill, but if some solution could be put in place to prevent all these duplicate alerts it would be better than being flooded like we are now.

    One possible solution is a simple check before the alert is generated:

    SELECT view_date
    FROM xf_user_alert
    WHERE alerted_user_id = ?
        AND content_type = 'profile_post'
        AND action = 'comment_other_commenter'
        AND content_id = ?
    ORDER BY event_date DESC
    LIMIT 1
    If view_date = 0, do not alert. If view_date > 0 or false, send alert.

    Finally, the alert phrase should have "There may be more comments after this." to be consistent with posts.
    M@rc, mjda, Rob and 26 others like this.
  2. Chris D

    Chris D XenForo Developer Staff Member

    I wouldn't normally bump suggestions but I just wanted to draw attention to this one in particular in case it was missed.

    Earlier on, this happened:

    Latest Alerts   XenForo Community.png

    This behaviour is somewhat inconsistent with threads and posts.
    Divvens, Dinh Thanh, jflory7 and 4 others like this.
  3. Martok

    Martok Well-Known Member

    I completely agree with this suggestion, having received multiple alerts whilst the above happened.
  4. BassMan

    BassMan Well-Known Member

    Agree! Or at least a link to stop watching comments on certain profile post.
  5. Connor Smith

    Connor Smith Active Member

    This annoys the life out of me. It would be nice for it to say "user X and 3 others commented on your post" or something along those lines.
    Jeremy P likes this.
  6. Cambion

    Cambion Well-Known Member

    Or take Facebook's way of doing it and having a "Mute" feature"(Facebook has "Stop Notifications"
  7. jflory7

    jflory7 Active Member

    I posted a thread for the same thing back in June (here), but this one has more likes. I really would love to see this annoying functionality removed!
  8. imthebest

    imthebest Formerly Super120

    Chris please make it happen in 1.5 this thing is annoying please fix!

    jflory7 likes this.
  9. Daniel Hood

    Daniel Hood Well-Known Member

    I think it'd go well with the rest of the profile post comment improvements.
    jflory7, Steve F and imthebest like this.
  10. Favori

    Favori Member

    This is really big problem in my forum. XF 1.5 should implement this improvement.
    jflory7 likes this.
  11. jflory7

    jflory7 Active Member

    That fix in 1.4.9 wasn't this… was it?
  12. Chris D

    Chris D XenForo Developer Staff Member

    No. That was a bug.
  13. Rob

    Rob Well-Known Member

    Annoying much? Defo needs addressed.
  14. jflory7

    jflory7 Active Member

    Awwww. :( I was really hoping it was this.
  15. imthebest

    imthebest Formerly Super120

    You are't going to see this implemented until 2.0
  16. Rob

    Rob Well-Known Member

    Wanna bet?
  17. imthebest

    imthebest Formerly Super120

    1.5 is already in beta thus only receiving bug fixes, it is feature locked. No new features are going to be added beyond what you see in the HYS forum.
  18. Express Plus Company

    Express Plus Company Active Member

    Totally Agree, 100 %
    jflory7 likes this.
  19. mjda

    mjda Active Member

    Maybe it could be considered an improvement, rather than a new feature. Then it could still be added during beta, like the ability to post status updates in the sidebar was added during the 1.4 beta.

    Think positive, man!! :D
    jflory7 and Rob like this.

Share This Page