Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

非ログイン時にも「メモを追加」が表示される #12309

Closed
Srgr0 opened this issue Nov 11, 2023 · 0 comments · Fixed by #12310
Closed

非ログイン時にも「メモを追加」が表示される #12309

Srgr0 opened this issue Nov 11, 2023 · 0 comments · Fixed by #12310
Labels
⚠️bug? This might be a bug

Comments

@Srgr0
Copy link
Collaborator

Srgr0 commented Nov 11, 2023

💡 Summary

非ログイン時にも、ユーザープロフィールの「メモを追加」が表示される。
保存のためのサーバーへのPOSTは401 Unauthorizedで弾かれる(これは当たり前)が、エラーが表示されないのでユーザーは保存されていないことが分からない。

サーバーへの保存時に飛ぶリクエストの詳細
※この動作自体は期待される通りであり、問題ない
endpoint: /api/users/update-memo
payload: {"memo":"testnote","userId":"9lx7w9jw48"}
response: {"error":{"message":"Credential required.","code":"CREDENTIAL_REQUIRED","id":"1384574d-a912-4b81-8601-c7b1c4085df1","kind":"client"}}

🥰 Expected Behavior

非ログイン時はユーザープロフィールの「メモを追加」が表示されない。または非ログイン時は保存できない旨を表示する。

🤬 Actual Behavior

非ログイン時にユーザープロフィールの「メモを追加」が表示され、入力できる。

mkexp srgr0 com_@manager

mkexp srgr0 com_@manager (1)

📝 Steps to Reproduce

  1. 任意のサーバーで任意のユーザーページを開く
  2. プロフィールの「メモを追加」を押して入力する
  3. 入力後、サーバーへのPOSTが401で弾かれる

💻 Frontend Environment

* Model and OS of the device(s): 任意のデバイス
* Browser: 任意のブラウザ
* Server URL: 任意のサーバー
* Misskey: 任意のバージョン(issue作成時点のdevelop, 2023.11.x, 2023.10.xで確認済み)

🛰 Backend Environment (for server admin)

* Installation Method or Hosting Service: 任意の方法/サービス
* Misskey: 任意のバージョン(issue作成時点のdevelop, 2023.11.x, 2023.10.xで確認済み)
* Node:
* PostgreSQL:
* Redis:
* OS and Architecture:
@Srgr0 Srgr0 added the ⚠️bug? This might be a bug label Nov 11, 2023
@Srgr0 Srgr0 changed the title 非ログイン時にもユーザーのメモ欄が表示される 非ログイン時にも「ノートを追加」が表示される Nov 11, 2023
@Srgr0 Srgr0 changed the title 非ログイン時にも「ノートを追加」が表示される 非ログイン時にも「メモを追加」が表示される Nov 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⚠️bug? This might be a bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant