summaryrefslogtreecommitdiff
path: root/packages/backend/src/core/NoteCreateService.ts
diff options
context:
space:
mode:
authoranatawa12 <anatawa12@icloud.com>2024-05-20 18:08:20 +0900
committerGitHub <noreply@github.com>2024-05-20 18:08:20 +0900
commitf6df94070b0fc1ca862d560b17488bd718c2ec85 (patch)
tree77cafdee3d7134951f9c23aeb9580eac7db11c42 /packages/backend/src/core/NoteCreateService.ts
parentfix notification limit with exclude/include types (#13836) (diff)
downloadsharkey-f6df94070b0fc1ca862d560b17488bd718c2ec85.tar.gz
sharkey-f6df94070b0fc1ca862d560b17488bd718c2ec85.tar.bz2
sharkey-f6df94070b0fc1ca862d560b17488bd718c2ec85.zip
Exclude channel notes from featured polls (#13838)
* feat(backend): add `channelId` to `MiPoll` as a Denormalized field * feat(backend): option to exclude polls in channels * chore: exclude channel notes from featured polls * docs(changelog): みつけるのアンケート欄にてチャンネルのアンケートが含まれてしまう問題を修正 * fix: missing license header
Diffstat (limited to 'packages/backend/src/core/NoteCreateService.ts')
-rw-r--r--packages/backend/src/core/NoteCreateService.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/packages/backend/src/core/NoteCreateService.ts b/packages/backend/src/core/NoteCreateService.ts
index 32104fea90..e5580f36d1 100644
--- a/packages/backend/src/core/NoteCreateService.ts
+++ b/packages/backend/src/core/NoteCreateService.ts
@@ -473,6 +473,7 @@ export class NoteCreateService implements OnApplicationShutdown {
noteVisibility: insert.visibility,
userId: user.id,
userHost: user.host,
+ channelId: insert.channelId,
});
await transactionalEntityManager.insert(MiPoll, poll);