We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
featuredが年越しのタイミングで多分壊れます。
時間をいじるのが面倒なので実際のコードではテストしていないですがnode replではある程度確認しました。
misskey/packages/backend/src/core/FeaturedService.ts
Lines 26 to 29 in 4e5b776
こちらでgetCurrentWindowは元旦からの日数が計算されています。そのため、元旦から三日間程度はwindowがおそらく0になります。
Lines 48 to 49 in 4e5b776
getRankingOfではcurrentWindow-1を使用しているので-1になってしまうと思うのですが、実際にデータが入ってるのは末尾(Globalは121)のwindowになると思います。このため年越し直後はfeaturedの該当noteがなくなると考えられます。
getRankingOf
currentWindow-1
-1
年越し後も年越し前のnoteがfeaturedに載る
年越し後も年越し前のnoteがfeaturedに多分乗らない
たぶんサーバー実行PCの時間を変えると再現できますが未確認です。
* Model and OS of the device(s): * Browser: * Server URL: * Misskey:
* Installation Method or Hosting Service: * Misskey: * Node: * PostgreSQL: * Redis: * OS and Architecture:
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
💡 Summary
featuredが年越しのタイミングで多分壊れます。
時間をいじるのが面倒なので実際のコードではテストしていないですがnode replではある程度確認しました。
misskey/packages/backend/src/core/FeaturedService.ts
Lines 26 to 29 in 4e5b776
こちらでgetCurrentWindowは元旦からの日数が計算されています。そのため、元旦から三日間程度はwindowがおそらく0になります。
misskey/packages/backend/src/core/FeaturedService.ts
Lines 48 to 49 in 4e5b776
getRankingOf
ではcurrentWindow-1
を使用しているので-1
になってしまうと思うのですが、実際にデータが入ってるのは末尾(Globalは121)のwindowになると思います。このため年越し直後はfeaturedの該当noteがなくなると考えられます。🥰 Expected Behavior
年越し後も年越し前のnoteがfeaturedに載る
🤬 Actual Behavior
年越し後も年越し前のnoteがfeaturedに多分乗らない
📝 Steps to Reproduce
たぶんサーバー実行PCの時間を変えると再現できますが未確認です。
💻 Frontend Environment
🛰 Backend Environment (for server admin)
The text was updated successfully, but these errors were encountered: