Skip to content

Commit

Permalink
Merge pull request #80 from taichanNE30/develop
Browse files Browse the repository at this point in the history
Fix mention disabler
  • Loading branch information
tai-cha authored Jul 28, 2023
2 parents c460498 + 5f10c61 commit 19e42cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mentions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ const getStatics = async (u:Misskey.entities.User) => {
const now = Date.now()
let [before, after] = [Config.mention.disable_sec_before, Config.mention.disable_sec_after]
// beforeより後,afterより前の場合,スキップ
if ((Config.recordTime.getTime() - before) < now && now < (Config.recordTime.getTime() - after) ) {
if ((Config.recordTime.getTime() - before) < now && now < (Config.recordTime.getTime() + after) ) {
// NOTE: リアクション送ろうとも思ったけど反応したら結局レートリミット引っかかるじゃん
// 集計開始ノートで告知すればよくない?
return // await YAMAG.Misskey.request('notes/reactions/create', { noteId: note.id, reaction: "😥" })
Expand Down

0 comments on commit 19e42cd

Please sign in to comment.