Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Read instance category on update check #890

Merged

Conversation

Altahrim
Copy link
Contributor

Allows to read new attributes category and isSubscriber from update check

@Altahrim Altahrim marked this pull request as draft July 10, 2023 09:09
Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
@Altahrim Altahrim marked this pull request as ready for review July 11, 2023 15:51
Copy link
Contributor

@skjnldsv skjnldsv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd like @blizzz approval before merge please

$this->remoteAddress = (isset($server['REMOTE_ADDR']) ? $server['REMOTE_ADDR'] : '');
switch (count($version)) {
case 14:
$this->isSubscriber = (int) $version[13];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does it mean we rely on the client to provide reliable subscription information?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes,I implemented it here : nextcloud/server#39264
I didn't find any other way, but we can discuss it if you have some time :)

Copy link
Contributor

@blizzz blizzz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(just the other question)

@skjnldsv skjnldsv merged commit b7b6b1a into nextcloud-releases:master Jul 13, 2023
14 checks passed
@Altahrim Altahrim deleted the feat/add_instance_category branch July 13, 2023 09:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

4 participants