We're updating the issue view to help you get more done. 

Creator can't edit a gift work if the recipient has deleted their account after refusing the gift

Description

  1. Create an account you don't mind deleting. This will be the gift recipient.

  2. Log in to a different account.

  3. Post > New Work

  4. Fill in required information and enter the user from step 1 as a gift recipient.

  5. Post the work.

  6. Log out.

  7. Log in as the user from step 1.

  8. Hi, username! > My Dashboard > Gifts

  9. Refuse the gift you received.

  10. Delete your account.

  11. Log back in as the creator of the gift work.

  12. Edit the work.

What should happen
You should be able to save the changes.

What actually happens
When you attempt to save the edits, you get a 500 error. This is because the Gift object still exists. (As a result, if you log in as an admin and view the work, you'll see "Refused As Gift:" displayed in the work meta, but it will be blank.)

Because the Gift is basically useless, we should make sure it gets deleted when the recipient deletes their account.

Note
Editing works fine if:

  • the gift is accepted instead of refused

  • the pseud is deleted instead of the user

 

Environment

None

Status

Assignee

Unassigned

Reporter

Sarken

Roadmap

Works

Priority

Medium

Affects versions

0.9.246

Fix versions

None

Components

BackEnd

Difficulty

Medium

Required Access Level

None

Milestone

Internal 0.9