Skip to:
Content
Pages
Categories
Search
Top
Bottom

Friendship Reject Works, but then fails—I’ve covered the db, *bp-friends code, and I can’t find wher

  • @wp-pbeast

    Member

    Running bp 1.5… Here’s the deal. A member sends a friend request. The user receives pending request. That user then rejects the request. The ajax performs and “Rejected” is listed.
    Now, I followed the trail—from start of process to finish—through the db and *bp-friends files. When the initiator requests, there’s an insert into wp_bp_friends showing pertinent information, including initiator and recipient, and default 0 for is_confirmed. If the user accepted, great, is confirmed is updated as 1. They are now buddies. However, if the user rejects the request, that very insert into wp_bp_friends is removed, and… then what happens?

    Because what’s happening for me is, although a user has just rejected the request—and it does show “rejected”—there are no errors—the initiator can then go and just request a connection again. So, it seems something is missing. Where is the “rejection” getting stored. Why can the rejected user keep requesting a connection?

    Can someone tell me a) is this intended default practice of the platform b) is something not working properly on my end c) where and what is supposed to happen in the db if someone rejects a request so that the initiator can’t keep making additional requests to the same user?
    Thanks so much in advance for your help!

Viewing 2 replies - 1 through 2 (of 2 total)
  • @djpaul

    Keymaster

    The rejection isn’t stored. Like you’ve found out, the request is just removed. You would have to implement your own storing of rejections and check new requests against that.

    @wp-pbeast

    Member

    Got it. Thanks Paul. I appreciate the reply.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Friendship Reject Works, but then fails—I’ve covered the db, *bp-friends code, and I can’t find wher’ is closed to new replies.
Skip to toolbar