mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-16 14:17:22 +01:00
client redesign: add infinite loading for guilds + misc fixes
This commit is contained in:
@@ -40,6 +40,7 @@ export const TAVERN_ID = shared.TAVERN_ID;
|
||||
|
||||
const NO_CHAT_NOTIFICATIONS = [TAVERN_ID];
|
||||
const LARGE_GROUP_COUNT_MESSAGE_CUTOFF = shared.constants.LARGE_GROUP_COUNT_MESSAGE_CUTOFF;
|
||||
const GUILDS_PER_PAGE = shared.constants.GUILDS_PER_PAGE;
|
||||
|
||||
const CRON_SAFE_MODE = nconf.get('CRON_SAFE_MODE') === 'true';
|
||||
const CRON_SEMI_SAFE_MODE = nconf.get('CRON_SEMI_SAFE_MODE') === 'true';
|
||||
@@ -204,8 +205,6 @@ schema.statics.getGroup = async function getGroup (options = {}) {
|
||||
|
||||
export const VALID_QUERY_TYPES = ['party', 'guilds', 'privateGuilds', 'publicGuilds', 'tavern'];
|
||||
|
||||
const GUILDS_PER_PAGE = 30; // number of guilds to return per page when using pagination
|
||||
|
||||
schema.statics.getGroups = async function getGroups (options = {}) {
|
||||
let {
|
||||
user, types, groupFields = basicFields,
|
||||
|
||||
Reference in New Issue
Block a user