apache/answer

Change list/unlist causes tag display exception

Closed this issue · 1 comments

Describe the bug

A clear and concise description of what the bug is.

To Reproduce

Steps to reproduce the behavior:

  1. Unlist a question with two or more tag
  2. Edit the question, remove one tag and add another one
  3. List the question
  4. The removed tag is re-displayed

Expected behavior

Removed tags should not be displayed.

Screenshots

20241022-103014.mp4

@fenbox Hi~
I've identified two issues. First, when restoring hidden tag relationships, we're not filtering out deleted data. Second, when updating questions, the tag relationships default to available status, without considering cases where the question might be hidden.
Please assign this to me, and I'll submit a pull request later.