mirror of
https://github.com/discourse/discourse.git
synced 2025-06-03 19:39:30 +08:00
DEV: initial system tests for chat and plugins (#18881)
This is a very basic to ensure it's working and open future possible work
This commit is contained in:
@ -17,7 +17,11 @@ class CategoryChannel < ChatChannel
|
||||
category.secure_group_ids.to_a.concat(staff_groups)
|
||||
end
|
||||
|
||||
def title(_)
|
||||
def title(_ = nil)
|
||||
name.presence || category.name
|
||||
end
|
||||
|
||||
def slug
|
||||
title.truncate(100).parameterize
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user