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

feat: デフォルトでフォローするユーザーを指定できるように #95

Draft
wants to merge 8 commits into
base: hanami
Choose a base branch
from

Conversation

kakkokari-gtyih
Copy link

@kakkokari-gtyih kakkokari-gtyih commented Oct 15, 2024

What

  • アカウント作成時に自動でフォローしておく(後でユーザー自身で解除可能)ユーザーを指定できるように
  • アカウント作成時に自動でフォローしておく(ユーザーがフォロー解除・ミュート・ブロックすることはできない)ユーザーを指定できるように

Why

Fix #74
misskey-dev#12451

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

Copy link

github-actions bot commented Oct 15, 2024

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

差分はこちら
--- base
+++ head
@@ -178,6 +178,18 @@
                         "type": "string"
                       }
                     },
+                    "defaultFollowedUsers": {
+                      "type": "array",
+                      "items": {
+                        "type": "string"
+                      }
+                    },
+                    "forciblyFollowedUsers": {
+                      "type": "array",
+                      "items": {
+                        "type": "string"
+                      }
+                    },
                     "hiddenTags": {
                       "type": "array",
                       "items": {
@@ -613,6 +625,8 @@
                     "translatorAvailable",
                     "mediaSilencedHosts",
                     "pinnedUsers",
+                    "defaultFollowedUsers",
+                    "forciblyFollowedUsers",
                     "hiddenTags",
                     "blockedHosts",
                     "sensitiveWords",
@@ -13784,6 +13798,26 @@
                       "type": "string"
                     }
                   },
+                  "defaultFollowedUsers": {
+                    "type": [
+                      "array",
+                      "null"
+                    ],
+                    "items": {
+                      "type": "string",
+                      "format": "misskey:id"
+                    }
+                  },
+                  "forciblyFollowedUsers": {
+                    "type": [
+                      "array",
+                      "null"
+                    ],
+                    "items": {
+                      "type": "string",
+                      "format": "misskey:id"
+                    }
+                  },
                   "hiddenTags": {
                     "type": [
                       "array",
@@ -14386,6 +14420,15 @@
                   "$ref": "#/components/schemas/Error"
                 },
                 "examples": {
+                  "FOLLOWED_USER_DUPLICATED": {
+                    "value": {
+                      "error": {
+                        "message": "Some items in \"defaultFollowedUsers\" and \"forciblyFollowedUsers\" are duplicated.",
+                        "code": "FOLLOWED_USER_DUPLICATED",
+                        "id": "bcf088ec-fec5-42d0-8b9e-16d3b4797a4d"
+                      }
+                    }
+                  },
                   "INVALID_PARAM": {
                     "value": {
                       "error": {
@@ -20431,6 +20474,16 @@
                       }
                     }
                   },
+                  "CANNOT_BLOCK_DUE_TO_SERVER_POLICY": {
+                    "value": {
+                      "error": {
+                        "message": "You cannot block that user due to server policy.",
+                        "code": "CANNOT_BLOCK_DUE_TO_SERVER_POLICY",
+                        "id": "e2f04d25-0d94-4ac3-a4d8-ba401062741b",
+                        "httpStatusCode": 403
+                      }
+                    }
+                  },
                   "INVALID_PARAM": {
                     "value": {
                       "error": {
@@ -36736,6 +36789,16 @@
                       }
                     }
                   },
+                  "CANNOT_UNFOLLOW_DUE_TO_SERVER_POLICY": {
+                    "value": {
+                      "error": {
+                        "message": "You cannot unfollow that user due to server policy.",
+                        "code": "CANNOT_UNFOLLOW_DUE_TO_SERVER_POLICY",
+                        "id": "19f25f61-0141-4683-99dc-217a88d633cb",
+                        "httpStatusCode": 403
+                      }
+                    }
+                  },
                   "INVALID_PARAM": {
                     "value": {
                       "error": {
@@ -55098,6 +55161,16 @@
                       }
                     }
                   },
+                  "CANNOT_MUTE_DUE_TO_SERVER_POLICY": {
+                    "value": {
+                      "error": {
+                        "message": "You cannot mute that user due to server policy.",
+                        "code": "CANNOT_MUTE_DUE_TO_SERVER_POLICY",
+                        "id": "15273a89-374d-49fa-8df6-8bb3feeea455",
+                        "httpStatusCode": 403
+                      }
+                    }
+                  },
                   "INVALID_PARAM": {
                     "value": {
                       "error": {
@@ -55635,6 +55708,16 @@
                       }
                     }
                   },
+                  "CANNOT_MUTE_DUE_TO_SERVER_POLICY": {
+                    "value": {
+                      "error": {
+                        "message": "You cannot mute that user due to server policy.",
+                        "code": "CANNOT_MUTE_DUE_TO_SERVER_POLICY",
+                        "id": "15273a89-374d-49fa-8df6-8bb3feeea455",
+                        "httpStatusCode": 403
+                      }
+                    }
+                  },
                   "INVALID_PARAM": {
                     "value": {
                       "error": {

Get diff files from Workflow Page

@kanarikanaru
Copy link
Member

マイグレーション部分で本家との差異が出ないならマージしたい

@kakkokari-gtyih
Copy link
Author

プロパティ名変わるのでちょっと待って

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.

本家先行: デフォルトで特定のアカウントをフォローする
2 participants