mirror of
https://github.com/discourse/discourse-ai.git
synced 2025-02-08 12:34:43 +00:00
12 lines
291 B
Ruby
12 lines
291 B
Ruby
# frozen_string_literal: true
|
|
|
|
class AiChatChannelSerializer < ApplicationSerializer
|
|
attributes :id, :chatable, :chatable_type, :chatable_url, :slug
|
|
|
|
def title
|
|
# Display all participants for a DM.
|
|
# For category channels, the argument is ignored.
|
|
object.title(nil)
|
|
end
|
|
end
|