Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ All notable changes to this project will be documented in this file.
- Require Nextcloud 33 / Hub 26 Winter
- Enable notifications in group conversations by default for new instances
[#16319](https://github.com/nextcloud/spreed/issues/16319)
- Bots: The `object.name` was set to an empty string for messages with attachments. This was fixed to be `'message'` as for normal messages without any attachments.

## 22.0.7 – 2025-12-17
### Changed
Expand Down
5 changes: 4 additions & 1 deletion docs/bots.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ The content format follows the [Activity Streams 2.0 Vocabulary](https://www.w3.
| actor.name | The display name of the attendee sending the message. |
| actor.talkParticipantType | *Optional:* 🆕 Added in Talk 21. If applicable the attendee's [participant type](constants.md#participant-types) is provided. However this field can not be provided in some cases, e.g. bots. |
| object.id | The message ID of the given message on the origin server. It can be used to react or reply to the given message. |
| object.name | For normal written messages `message`, otherwise one of the known [system message identifiers](chat.md#system-messages). |
| object.name | For normal written messages `message`, otherwise one of the known [system message identifiers](chat.md#system-messages). Due to a bug this was set to an empty string for messages with attachments until Nextcloud 33 with Talk 23. |
| object.content | A JSON encoded dictionary with a `message` and `parameters` key. The message can include placeholders and the [Rich Object parameters](https://github.com/nextcloud/server/blob/master/lib/public/RichObjectStrings/Definitions.php) are rendered into it in the chat view. |
| object.mediaType | `text/markdown` when the message should be interpreted as Markdown. Otherwise `text/plain`. |
| object.inReplyTo | *Optional:* 🆕 Added in Talk 21. If applicable the parent message which was quoted in this message |
Expand Down Expand Up @@ -432,3 +432,6 @@ When installing the bot specify `nextcloudapp://$APPID` as the bot URL, together
- Added direct support for Nextcloud apps as bots. A new feature flag `events` which indicates that a bot will utilize the `OCA\Talk\Events\BotInvokeEvent` event listed in [PHP events](events.md#bot-invoke) rather than being invoked via a webhook.
- Added new feature flag `reaction` which allows to get invoked for added and removed reactions
- In hooks that are replies the new optional field `object.inReplyTo` contains the actor and content of the parent chat message

### Nextcloud 33 / Talk 23 - February 2026
- Due to a bug the `object.name` was set to an empty string for messages with attachments. This was fixed to be `'message'` as for normal messages without any attachments.
2 changes: 1 addition & 1 deletion lib/Service/BotService.php
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ public function afterSystemMessageSent(SystemMessageSentEvent $event, MessagePar
$this->invokeBots($botServers, $event->getRoom(), $event->getComment(), [
'type' => 'Activity',
'actor' => $this->activityPubHelper->generatePersonFromMessageActor($message),
'object' => $this->activityPubHelper->generateNote($event->getComment(), $messageData, $message->getMessageRaw()),
'object' => $this->activityPubHelper->generateNote($event->getComment(), $messageData, $message->getMessageRaw() ?: 'message'),
'target' => $this->activityPubHelper->generateCollectionFromRoom($event->getRoom()),
]);
}
Expand Down
Loading