mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-10-31 11:05:54 +01:00 
			
		
		
		
	fix: #7232
This commit is contained in:
		| @@ -90,6 +90,7 @@ | |||||||
|     "postsPerPage": 20, |     "postsPerPage": 20, | ||||||
|     "userSearchResultsPerPage": 50, |     "userSearchResultsPerPage": 50, | ||||||
|     "maximumGroupNameLength": 255, |     "maximumGroupNameLength": 255, | ||||||
|  |     "maximumGroupTitleLength": 40, | ||||||
|     "preventTopicDeleteAfterReplies": 0, |     "preventTopicDeleteAfterReplies": 0, | ||||||
|     "feeds:disableSitemap": 0, |     "feeds:disableSitemap": 0, | ||||||
|     "sitemapTopics": 500, |     "sitemapTopics": 500, | ||||||
|   | |||||||
| @@ -5,6 +5,7 @@ | |||||||
| 	"private-groups.warning": "<strong>Beware!</strong> If this option is disabled and you have private groups, they automatically become public.", | 	"private-groups.warning": "<strong>Beware!</strong> If this option is disabled and you have private groups, they automatically become public.", | ||||||
| 	"allow-multiple-badges-help": "This flag can be used to allow users to select multiple group badges, requires theme support.", | 	"allow-multiple-badges-help": "This flag can be used to allow users to select multiple group badges, requires theme support.", | ||||||
| 	"max-name-length": "Maximum Group Name Length", | 	"max-name-length": "Maximum Group Name Length", | ||||||
|  | 	"max-title-length": "Maximum Group Title Length", | ||||||
| 	"cover-image": "Group Cover Image", | 	"cover-image": "Group Cover Image", | ||||||
| 	"default-cover": "Default Cover Images", | 	"default-cover": "Default Cover Images", | ||||||
| 	"default-cover-help": "Add comma-separated default cover images for groups that don't have an uploaded cover image" | 	"default-cover-help": "Add comma-separated default cover images for groups that don't have an uploaded cover image" | ||||||
|   | |||||||
| @@ -69,6 +69,8 @@ groupsController.get = function (req, res, callback) { | |||||||
| 				group: result.group, | 				group: result.group, | ||||||
| 				groupNames: result.groupNames, | 				groupNames: result.groupNames, | ||||||
| 				allowPrivateGroups: meta.config.allowPrivateGroups, | 				allowPrivateGroups: meta.config.allowPrivateGroups, | ||||||
|  | 				maximumGroupNameLength: meta.config.maximumGroupNameLength, | ||||||
|  | 				maximumGroupTitleLength: meta.config.maximumGroupTitleLength, | ||||||
| 			}); | 			}); | ||||||
| 		}, | 		}, | ||||||
| 	], callback); | 	], callback); | ||||||
|   | |||||||
| @@ -4,7 +4,7 @@ | |||||||
| 			<div class="group-settings-form"> | 			<div class="group-settings-form"> | ||||||
| 				<fieldset> | 				<fieldset> | ||||||
| 					<label for="change-group-name">[[admin/manage/groups:edit.name]]</label> | 					<label for="change-group-name">[[admin/manage/groups:edit.name]]</label> | ||||||
| 					<input type="text" class="form-control" id="change-group-name" placeholder="Group Name" value="{group.displayName}" <!-- IF group.system -->readonly<!-- ENDIF group.system -->/><br /> | 					<input type="text" class="form-control" id="change-group-name" placeholder="Group Name" value="{group.displayName}" maxlength="{maximumGroupNameLength}" <!-- IF group.system -->readonly<!-- ENDIF group.system -->/><br /> | ||||||
| 				</fieldset> | 				</fieldset> | ||||||
|  |  | ||||||
| 				<fieldset> | 				<fieldset> | ||||||
| @@ -14,7 +14,7 @@ | |||||||
|  |  | ||||||
| 				<fieldset> | 				<fieldset> | ||||||
| 					<label for="change-group-user-title">[[admin/manage/groups:edit.user-title]]</label> | 					<label for="change-group-user-title">[[admin/manage/groups:edit.user-title]]</label> | ||||||
| 					<input type="text" class="form-control" id="change-group-user-title" placeholder="The title of users if they are a member of this group" value="{group.userTitle}" maxlength="40" /><br /> | 					<input type="text" class="form-control" id="change-group-user-title" placeholder="The title of users if they are a member of this group" value="{group.userTitle}" maxlength="{maximumGroupTitleLength}" /><br /> | ||||||
| 				</fieldset> | 				</fieldset> | ||||||
|  |  | ||||||
| 				<fieldset> | 				<fieldset> | ||||||
|   | |||||||
| @@ -31,6 +31,9 @@ | |||||||
|  |  | ||||||
| 			<label>[[admin/settings/group:max-name-length]]</label> | 			<label>[[admin/settings/group:max-name-length]]</label> | ||||||
| 			<input class="form-control" type="text" placeholder="255" data-field="maximumGroupNameLength" /> | 			<input class="form-control" type="text" placeholder="255" data-field="maximumGroupNameLength" /> | ||||||
|  |  | ||||||
|  | 			<label>[[admin/settings/group:max-title-length]]</label> | ||||||
|  | 			<input class="form-control" type="text" placeholder="40" data-field="maximumGroupTitleLength" /> | ||||||
| 		</form> | 		</form> | ||||||
| 	</div> | 	</div> | ||||||
| </div> | </div> | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user