Skip to content

Commit

Permalink
richdocuments: add host_session_id parameter
Browse files Browse the repository at this point in the history
Signed-off-by: Henry Castro <[email protected]>
  • Loading branch information
hcvcastro committed Jun 13, 2024
1 parent 1f64755 commit 26d8976
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/Service/InitialStateService.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ public function prepareParams(array $params): array {
'title' => '',
'permissions' => '',
'isPublicShare' => false,
'version' = > $this->appManager->getAppVersion('richdocuments')

Check failure on line 74 in lib/Service/InitialStateService.php

View workflow job for this annotation

GitHub Actions / static-psalm-analysis

ParseError

lib/Service/InitialStateService.php:74:14: ParseError: Syntax error, unexpected '=', expecting ',' or ']' or ')' on line 74 (see https://psalm.dev/173)
];

return array_merge($defaults, $params);
Expand Down
4 changes: 4 additions & 0 deletions src/document.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,8 @@ const documentsMain = {
+ '<input name="theme" value="' + getCollaboraTheme() + '" type="hidden"/>'
// buy product for new customer users
+ '<input name="buy_product" value="https://nextcloud.com/pricing" type="hidden"/>'
+ '<input name="host_session_id" value="nextcloud ' + OC.config.version
+ ' - richdocuments ' + Config.get('version') + '" type="hidden"/>'
+ '</form>'

// iframe that contains the Collabora Online Viewer
Expand Down Expand Up @@ -228,6 +230,8 @@ const documentsMain = {
+ '<input name="theme" value="' + getCollaboraTheme() + '" type="hidden"/>'
// buy product for new customer users
+ '<input name="buy_product" value="https://nextcloud.com/pricing" type="hidden"/>'
+ '<input name="host_session_id" value="nextcloud ' + OC.config.version
+ ' - richdocuments ' + Config.get('version') + '" type="hidden"/>'
+ '</form>'

// iframe that contains the Collabora Online
Expand Down

0 comments on commit 26d8976

Please sign in to comment.