Plugin: BuddyPress Moderation

Join this plugin group to follow comments, support topics and reviews.

Issues with API (2 posts)

Started 1 year, 6 months ago by: MrMaz

  • Profile picture of MrMaz MrMaz said 1 year, 6 months ago:

    I am trying to integrate moderation with another plugin and have found a couple of bugs.

    bpModeration.php line 195 (variable $type_slug does not exist)
    bpModFrontend.php lines 99, 100 (casting to id is bad because the corresponding db table fields are varchar)

    Marshall

  • Profile picture of francescolaffi francescolaffi said 1 year, 5 months ago:

    @MrMaz Yep you are right, on both.
    I did not noticed bp activity had not-integer ids, and I also wonder why (maybe there’s a good reason, I just don’t get it), problem is that removing the casting would not solve anything because in bp moderation table are stored as int so there will still be casting somewhere else, making it compatible with non-int ids would mean a lot of refactoring.
    There is some plugin that is currently using varchar as activity ids?