Hi,

The issue for http://drupal.org/node/349264 was resolved but now denying a friend doesn't work...

CommentFileSizeAuthor
#1 flag_friend_deny-remove_406082.patch1.89 KBsirkitree

Comments

sirkitree’s picture

StatusFileSize
new1.89 KB

Hrm. it seems I need to do something like check the status first.

If you are 'Denying' a friend request, it should be 'unflag'.
If you are 'Removing' a friend, it should be an 'unfriend'.

$flag->theme('unflag', $uid) should be used when we need to 'unflag'.
flag_friend_create_link() should be used when we need to 'unfriend'.

Try this patch.

It should fix the Deny and Remove link to both work as described above.

sirkitree’s picture

Status: Active » Needs review
dropchew’s picture

Yap it works now ^_^

sirkitree’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.