File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -208,9 +208,10 @@ async function createVanillaGroup (challenge) {
208
208
const groupNameTemplate = _ . template ( groupTemplate . group . name )
209
209
const groupDescriptionTemplate = challenge . legacy . selfService ? _ . template ( groupTemplate . group . selfServiceDescription )
210
210
: _ . template ( groupTemplate . group . description )
211
+ const shorterGroupName = groupNameTemplate ( { challengeDetailsDiscussion } ) . substring ( 0 , config . FORUM_TITLE_LENGTH_LIMIT ) ;
211
212
212
213
const { body : group } = await vanillaClient . createGroup ( {
213
- name : groupNameTemplate ( { challengeDetailsDiscussion } ) . slice ( 0 , config . FORUM_TITLE_LENGTH_LIMIT ) ,
214
+ name : groupNameTemplate ( { challengeDetailsDiscussion } ) . length >= config . FORUM_TITLE_LENGTH_LIMIT ? ` ${ shorterGroupName } ...` : groupNameTemplate ( { challengeDetailsDiscussion } ) ,
214
215
privacy : groupTemplate . group . privacy ,
215
216
type : groupTemplate . group . type ,
216
217
description : groupDescriptionTemplate ( { challenge } ) ,
You can’t perform that action at this time.
0 commit comments