usememos / memos

An open-source, lightweight note-taking solution. The pain-less way to create your meaningful notes. Your Notes, Your Way.
https://usememos.com
MIT License
34.06k stars 2.47k forks source link

Major BUG! #3738

Closed Cat66666666 closed 3 months ago

Cat66666666 commented 3 months ago

Describe the bug

A user posted a public memo that when the administrator deletes the user account, the exploration function will be unavailable!

Steps to reproduce

  1. The administrator creates a user account
  2. The new user posts a public memo
  3. The administrator deletes the account
  4. The exploration function is unavailable

The version of Memos you're using.

v0.22.3

Screenshots or additional context

No response

Cat66666666 commented 3 months ago

rpc error: code = Internal desc = runtime error: invalid memory address or nil pointer dereference

hanyuwei70 commented 3 months ago

got same issue.

Issues-translate-bot commented 3 months ago

Issue is not in English. It has been translated automatically.


got same issue.

cblte commented 3 months ago

Same here. As soon as you archive and then delete the user, the posts from that deleted user are gone, but also the "Explore" page shows nothing. Version 0.22.3 here.

boojack commented 3 months ago

Fixed with https://github.com/usememos/memos/commit/7564c40c8d846c4c30b8fb1357d23b924e16bd6c

The main reason is that there is dirty data, which can be cleaned up manually at this moment. And we'd like to implement the relevant logic in next release.

Cat66666666 commented 3 months ago

太好了

Issues-translate-bot commented 3 months ago

Issue is not in English. It has been translated automatically.


Very good