mirror of
https://github.com/nextcloud/documentation.git
synced 2025-07-29 12:05:46 +00:00
fix(developer): mention that context_chat should be enabled before submitting content
Signed-off-by: Edward Ly <contact@edward.ly>
This commit is contained in:
@ -116,7 +116,10 @@ if you want to trigger an initial import of content items.
|
||||
Submitting ContentItem data
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
To submit content, wrap it in an ``\OCP\ContextChat\ContentItem`` object:
|
||||
Before submitting, you should check that the Context Chat app is enabled first
|
||||
by calling the ``isContextChatAvailable()`` method.
|
||||
|
||||
Then, to submit content, wrap it in a list of ``\OCP\ContextChat\ContentItem`` objects:
|
||||
|
||||
.. code-block:: php
|
||||
|
||||
|
Reference in New Issue
Block a user