From 0f3e8f38608cd70f5f751a3d37a78e6997908706 Mon Sep 17 00:00:00 2001 From: Ibotmealot <42391199+Ibotmealot@users.noreply.github.com> Date: Wed, 26 Jan 2022 21:12:02 -0500 Subject: [PATCH] Re-enable Namehistory --- backend/src/data/GuildNicknameHistory.ts | 2 +- backend/src/data/UsernameHistory.ts | 2 +- backend/src/plugins/NameHistory/NameHistoryPlugin.ts | 5 ++--- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/backend/src/data/GuildNicknameHistory.ts b/backend/src/data/GuildNicknameHistory.ts index 9f75d24e..e0cf7cfb 100644 --- a/backend/src/data/GuildNicknameHistory.ts +++ b/backend/src/data/GuildNicknameHistory.ts @@ -17,7 +17,7 @@ if (!isAPI()) { setTimeout(cleanup, 30 * SECONDS); } -export const MAX_NICKNAME_ENTRIES_PER_USER = 10; +export const MAX_NICKNAME_ENTRIES_PER_USER = 20; export class GuildNicknameHistory extends BaseGuildRepository { private nicknameHistory: Repository; diff --git a/backend/src/data/UsernameHistory.ts b/backend/src/data/UsernameHistory.ts index 7aa4331a..bcd3ba9d 100644 --- a/backend/src/data/UsernameHistory.ts +++ b/backend/src/data/UsernameHistory.ts @@ -17,7 +17,7 @@ if (!isAPI()) { setTimeout(cleanup, 30 * SECONDS); } -export const MAX_USERNAME_ENTRIES_PER_USER = 5; +export const MAX_USERNAME_ENTRIES_PER_USER = 20; export class UsernameHistory extends BaseRepository { private usernameHistory: Repository; diff --git a/backend/src/plugins/NameHistory/NameHistoryPlugin.ts b/backend/src/plugins/NameHistory/NameHistoryPlugin.ts index 0efb5fe3..250cace5 100644 --- a/backend/src/plugins/NameHistory/NameHistoryPlugin.ts +++ b/backend/src/plugins/NameHistory/NameHistoryPlugin.ts @@ -35,9 +35,8 @@ export const NameHistoryPlugin = zeppelinGuildPlugin()({ // prettier-ignore events: [ - // FIXME: Temporary - // ChannelJoinEvt, - // MessageCreateEvt, + ChannelJoinEvt, + MessageCreateEvt, ], beforeLoad(pluginData) {