Misskey: [v11] onDelete: CASCADE on reply note

Created on 5 May 2019  ·  4Comments  ·  Source: syuilo/misskey

💡 Summary

When some note deletes, attached replies are deleted too.

code

    @ManyToOne(type => Note, {
        onDelete: 'CASCADE'
    })
    @JoinColumn()
    public reply: Note | null;

🙂 Expected Behavior

deleted notes should be displayed as (deleted) and should not affect replies (should not do cascade deletion)

☹️ Actual Behavior

whether it is remote or not, notes replying to deleted all deletes by cascading.

📝 Steps to Reproduce

  1. make a note A
  2. reply to a note A = B
  3. delete A
  4. B is deleted.

📌 Environment

v11

v10 does well

⚠️bug?

All 4 comments

I have heard that @syuilo says that this is a feature.

@tamaina If It is really so please mark this issue as closed

FYI: https://github.com/syuilo/misskey/pull/4572#issuecomment-478474515 and below. (I'm sorry about that discussed them in Japanese!)

The soft deletion was postponed because the implementation was difficult. It may be implemented in the future.

Was this page helpful?
0 / 5 - 0 ratings