Hi,
I think friendlist_api_socnet_is_blocked got either the wrong order of parameters or the wrong status is checked in that function.
Scenario
1) friendlist_statuses table:
User with uid 1 deleted user with uid 3(they were friends)
sid requester_id requestee_id rtid status rid_origin rid last_update_time
1 3 1 1 TW_1_TO_2_D 1 1 1238599598
2 1 3 1 TW_2_TO_1_D 1 0 1238599598
User with uid 1 declined user with uid 3 's friendsrquest
sid requester_id requestee_id rtid status rid_origin rid last_update_time
1 3 1 1 TW_1_TO_2_D 1 1 1238601764
2 1 3 1 TW_2_TO_1_D 1 0 1238601764
In table friendlist_relations tw_disregarded_time has been set in both case, same value as last_update_time above.
2) Drupal Frontend
Conclusion
When user 1 visits the profile of user 3 he gets a "friend – You don't want to be friends" "Add friend anyway" on the the other hand "friends – You can not become friends".
So i guess, that user with uid 1 is parameter 1($blocked_by_uid) and user with uid 3 is parameter 2($blocked_uid) to call friendlist_api_socnet_is_blocked.
When i call friendlist_api_socnet_is_blocked(1,3) it return FALSE when i change the order of parameters it returns TRUE because the checked status in that function is TW_1_TO_2_D.
I am not sure if that is a problem of comprehension or a bug...
Comments
Comment #1
mariusooms commentedThis is by design, so when you are deleted once, you can not keep hassling that user. On the other hand if you block someone, you can lift that block by becoming friends again. The rest what you discussed I'm not really getting.
I hope that explains it. You can also research the readme as it includes a fair bit of information.
Comment #2
mercmobily commentedHi,
[30 minutes of testing and head scratching]
You were absolutely right, there was indeed a bug in the impllementation of the socnet API -- well spotted!
Fixed in the latest development version.
Thanks a lot,
Merc.
Comment #3
mercmobily commentedHi,
[30 minutes of testing and head scratching]
You were absolutely right, there was indeed a bug in the impllementation of the socnet API -- well spotted!
Fixed in the latest development version.
Thanks a lot,
Merc.
Comment #4
mercmobily commented