Remove 'comment' type item from river listing

I see when a user comment on a post in wire, the same gets displayed as sepreate item in river listing. I need to remove this by providing a hook to orginal function get_river_items().

I dont know where to put to put the code. Please help.

Thanks,

  • get_river_items() is not the one you need ;-) look for add_to_river() for the comment item.

     

     

  • Sorry your are not getting my point.

    Check the below, "testin like notification" is main post on wire and "ajax test" and "hello comments" are added as comments to this main post. But apart from coming and reply comments to main post, the also appear has one river item in list. I want to avoide it.

    • ajax test
      6 minutes ago
    • FrndsAdmin
       
      hello comments
      21 hours ago
    • test1
      test1 posted to the wire
      testin like notification
      7 days ago
       
  • " not getting my point " ?? The logic posted *is the correct portion of thewire processing where some appropriate and correct code changes will deliver *exactly what you want to achieve ;-) => comments to thewire are displayed only within the wire's page but not displayed on the river activity page ! is this not what you want ? if you do so - it most probably could be coded in about 10 mins flat.

  • I have the same problem, if someone posts a comment it shows on the top again twice.

    Anyone can find a fix and help us?

    Regards