Forum Replies Created
-
Anyone?..
Question (or maybe a suggestion) to Buddypress developers:
I was wondering if it’s possible to apply a filter to
the returned$slug
ingroups_check_slug()
function
so that anyone can play with BP group slugs?
Cheers.Thanks a million for your response and sorry for not looking to the plugin’s page meself.
Stupid me…Update: reverting to BuddyPress 2.1.1 fixes the issue.
Found where the problem was.
And it’s not Buddypress.
Varnish reverse proxy was not handling the mentioned redirect properly and was causing delays.
So it’s RESOLVED by modifying Varnish config.PS
The nature of the mentioned redirect (and its purpose) is still beyond me.Update:
As a temp fix (I know it’s by far not perfect) I’ve replaced the
return ‘not_friends’
which is triggered by theelseif
(see post above)
with
return BP_Friends_Friendship::check_is_friend( $user_id, $possible_friend_id );
I understand that by doing this I’m loosing some of the optimization and this will most likely lead to the increased amount of queries to the DB, but for now I haven’t found a better fix.
I hope someone will be able to find a smarter solution for this issue.
Or maybe give an idea of why this is happening in my case.I have identified that
friends_check_friendship_status()
function is returning'not_friends'
because theelseif (has_filter(‘bp_user_query_populate_extras’, 'bp_friends_filter_user_query_populate_extras’))
is triggeringreturn ‘not_friends’
.But I don’t understand at the moment on why this is happening…
Switched to 2014 – unfortunately no luck.
The issue is still present.PS
I know that bp-default is no longer supported, but I’m forced to stick with it for some time 🙁
Anyway, looks like the issue is not related to bp-default.Hello Dan,
I’m using bp-default.
I’ve tried to dig a bit deeper and it looks like the friends_check_friendship_status function in bp-friends-functions.php is reporting incorrect friendship status. Maybe this info can help…Anton.