Hi,

at the moment, if a user gets deleted, relations or pending relations with this user aren't shown any more. This is the expected behaviour, which is done by views.
But the function friendlist_api_db_statuses still shows the relation. I think this should be changed, so that relation statuses with deleted users aren't shown any more.

Is this possible?

Regards,
Ben

CommentFileSizeAuthor
#2 friendlist-380154.patch704 bytesmanarth
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mercmobily’s picture

Category: feature » bug

Hi,

My goodness... this isn't just *possible*, this is *necessary*!
Upgrading this to bug report. It's important to delete relations if a user is *deleted* from the database...

Will get onto it ASAP. Sorry about the wait.

Merc.

manarth’s picture

Status: Active » Needs review
FileSize
704 bytes

Here's a patch that adds in the deletion from the status table.

dawehner’s picture

Status: Needs review » Reviewed & tested by the community

Oh nice, thanks for providing a patch. This patch works pretty fine and looks fine as well. Update status, even this will probably not be applied anymore.