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

ローカルユーザーが誰もフォローしていないリモートユーザーによるノートのブロックの改善 #206

Merged
merged 9 commits into from
Jun 30, 2024

Conversation

anatawa12
Copy link
Collaborator

What

Fixes some portion of #146

Why

Additional info (optional)

Checklist

  • Read the contribution guide
  • Test working in a local environment
  • (If needed) Add story of storybook
  • (If needed) Update CHANGELOG.md
  • (If possible) Add tests

Comment on lines 58 to 66

<MkSwitch v-model="nirilaBlockMentionsFromUnfamiliarRemoteUsers">
<template #label>未知のリモートユーザからの通知を生成するノートをブロックする</template>
</MkSwitch>

<MkTextarea v-model="hiddenTags">
<template #label>未知のリモートユーザからの通知を許可するローカルユーザのid</template>
<template #caption>9grmcrkrslのようなユーザのidであって@adminのようなユーザ名ではないことに気をつけてください。</template>
</MkTextarea>
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

どちらの設定もコンパネからいじれます

Copy link

github-actions bot commented Jun 29, 2024

このPRによるapi.jsonの差分

差分はこちら
--- base
+++ head
@@ -743,6 +743,15 @@
                         "string",
                         "null"
                       ]
+                    },
+                    "nirilaBlockMentionsFromUnfamiliarRemoteUsers": {
+                      "type": "boolean"
+                    },
+                    "nirilaAllowedUnfamiliarRemoteUserIds": {
+                      "type": "array",
+                      "items": {
+                        "type": "string"
+                      }
                     }
                   },
                   "required": [
@@ -850,7 +859,9 @@
                     "urlPreviewMaximumContentLength",
                     "urlPreviewRequireContentLength",
                     "urlPreviewUserAgent",
-                    "urlPreviewSummaryProxyUrl"
+                    "urlPreviewSummaryProxyUrl",
+                    "nirilaBlockMentionsFromUnfamiliarRemoteUsers",
+                    "nirilaAllowedUnfamiliarRemoteUserIds"
                   ]
                 }
               }
@@ -13353,6 +13364,15 @@
                       "string",
                       "null"
                     ]
+                  },
+                  "nirilaBlockMentionsFromUnfamiliarRemoteUsers": {
+                    "type": "boolean"
+                  },
+                  "nirilaAllowedUnfamiliarRemoteUserIds": {
+                    "type": "array",
+                    "items": {
+                      "type": "string"
+                    }
                   }
                 }
               }

Get diff files from Workflow Page

@anatawa12
Copy link
Collaborator Author

lintは後でやります

Copy link

@Sayamame-beans Sayamame-beans left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

流れてきたノートの通知対象ユーザーの中に、1人でも通知を許可するユーザーが居たら、そのノートは(対象者全員に)通知されるって感じであってます?
雰囲気的には大体良さそうですかね~

CHANGELOG.md Outdated Show resolved Hide resolved
packages/frontend/src/pages/admin/moderation.vue Outdated Show resolved Hide resolved
packages/frontend/src/pages/admin/moderation.vue Outdated Show resolved Hide resolved
packages/frontend/src/pages/admin/moderation.vue Outdated Show resolved Hide resolved
@anatawa12
Copy link
Collaborator Author

流れてきたノートの通知対象ユーザーの中に、1人でも通知を許可するユーザーが居たら、そのノートは(対象者全員に)通知されるって感じであってます?

No 全員が許可されてないとだめです。(じゃないとスパムの抜け道になるので)

@Sayamame-beans
Copy link

流れてきたノートの通知対象ユーザーの中に、1人でも通知を許可するユーザーが居たら、そのノートは(対象者全員に)通知されるって感じであってます?

No 全員が許可されてないとだめです。(じゃないとスパムの抜け道になるので)

early returnしててそういうロジックになってないような気が…?

@anatawa12
Copy link
Collaborator Author

入ってないときにreturn faldeしたつもりになってた

anatawa12 and others added 3 commits June 30, 2024 17:07
Co-authored-by: Sayamame-beans <61457993+Sayamame-beans@users.noreply.github.com>
@Sayamame-beans
Copy link

他はなんとなく良さそう

Copy link

@Sayamame-beans Sayamame-beans left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

@anatawa12 anatawa12 merged commit b29da3e into niri-la:develop Jun 30, 2024
25 checks passed
@anatawa12 anatawa12 deleted the fix-reply-filter-admin branch June 30, 2024 09:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants