Closed mercExec closed 8 months ago
Hey there, thanks for using this library, if you wish you can create two functions and send them as a PR, and I will check it out and merge it
Done. Function names could be changed since I'm terrible with naming conventions. Anyway, thank you for developing this library; it's the best one of all the libraries i found that serve the same purpose.
Thanks Merc so much for your contribution and for your nice words, I just published a new release v3.5.9
@mkwsra, should this issue still be with status open? Is there anything else that needs to be done?
No, thanks, I will close it immediately
Hello
Is there a way to get all users that have been blocked by the current user (sender) only? getBlockedFriendships() returns records with user ID found in both 'sender' or 'receiver', so if both users blocked each other, they will have their own model returned as well.
I had to modify the method from this:
return $this->getOrPaginate($this->findFriendships(Status::BLOCKED), $perPage, $fields);
to thisreturn $this->getOrPaginate($this->findFriendships(Status::BLOCKED, type: 'sender'), $perPage, $fields);