Skip to content

Conversation

@TechnicalSuwako
Copy link
Contributor

@TechnicalSuwako TechnicalSuwako commented May 25, 2025

Summary

The URI for Mastodon only has been changed to the URI used for all Fediverse servers.
https://{$instance}/api/v1/accounts/lookup?acct={$username}@{$instance}https://{$instance}.well-known/webfinger?resource=acct:{$username}@{$instance}

TODO

  • ...

Checklist

@TechnicalSuwako TechnicalSuwako requested a review from a team as a code owner May 25, 2025 13:18
@TechnicalSuwako TechnicalSuwako requested review from ArtificialOwl, nfebe and yemkareems and removed request for a team May 25, 2025 13:18
@joshtrichards joshtrichards added bug 3. to review Waiting for reviews feature: profile PRs or issues related to the Profile feature (e.g. Profile page, API, etc.) labels May 25, 2025
@joshtrichards
Copy link
Member

Thanks @TechnicalSuwako. This change does seem to make sense.

Can you adjust the commit message to be in conventional format?

Refs:

https://swicg.github.io/activitypub-webfinger/
https://docs.joinmastodon.org/spec/webfinger/

@TechnicalSuwako
Copy link
Contributor Author

@joshtrichards What does the "traditional format" look like?
I use an automatic translation machine...

@TechnicalSuwako TechnicalSuwako changed the title The URI for Mastodon only has been changed to the URI used for all Fediverse servers. fix(settings): change Mastodon only URI to webfinger May 25, 2025
@joshtrichards joshtrichards linked an issue May 25, 2025 that may be closed by this pull request
8 tasks
@TechnicalSuwako TechnicalSuwako requested a review from susnux May 26, 2025 13:58
@susnux
Copy link
Contributor

susnux commented May 27, 2025

Code looks good, thank you.
But please fix the tests

There were 2 errors:

  1. Test\Accounts\AccountManagerTest::testSanitizingFediverseServer with data set "valid response" ('@[email protected]', '[email protected]', true, '{"username":"foo"}')
    InvalidArgumentException: fediverse

/home/runner/actions-runner/_work/server/server/lib/private/Accounts/AccountManager.php:767
/home/runner/actions-runner/_work/server/server/lib/private/Accounts/AccountManager.php:810
/home/runner/actions-runner/_work/server/server/tests/lib/Accounts/AccountManagerTest.php:877

  1. Test\Accounts\AccountManagerTest::testSanitizingFediverseServer with data set "valid response - no at" ('[email protected]', '[email protected]', true, '{"username":"foo"}')
    InvalidArgumentException: fediverse

/home/runner/actions-runner/_work/server/server/lib/private/Accounts/AccountManager.php:767
/home/runner/actions-runner/_work/server/server/lib/private/Accounts/AccountManager.php:810
/home/runner/actions-runner/_work/server/server/tests/lib/Accounts/AccountManagerTest.php:877

Signed-off-by: 諏訪子 <[email protected]>
@github-actions
Copy link
Contributor

github-actions bot commented Jun 9, 2025

Hello there,
Thank you so much for taking the time and effort to create a pull request to our Nextcloud project.

We hope that the review process is going smooth and is helpful for you. We want to ensure your pull request is reviewed to your satisfaction. If you have a moment, our community management team would very much appreciate your feedback on your experience with this PR review process.

Your feedback is valuable to us as we continuously strive to improve our community developer experience. Please take a moment to complete our short survey by clicking on the following link: https://cloud.nextcloud.com/apps/forms/s/i9Ago4EQRZ7TWxjfmeEpPkf6

Thank you for contributing to Nextcloud and we hope to hear from you soon!

(If you believe you should not receive this message, you can add yourself to the blocklist.)

@sorbaugh sorbaugh merged commit 4dcb282 into nextcloud:master Jul 7, 2025
179 of 186 checks passed
@provokateurin
Copy link
Member

/backport to stable31

@welcome
Copy link

welcome bot commented Jul 7, 2025

Thanks for your first pull request and welcome to the community! Feel free to keep them coming! If you are looking for issues to tackle then have a look at this selection: https://github.com/nextcloud/server/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22

@provokateurin
Copy link
Member

/backport to stable30

@backportbot
Copy link

backportbot bot commented Jul 7, 2025

The backport to stable31 failed. Please do this backport manually.

# Switch to the target branch and update it
git checkout stable31
git pull origin stable31

# Create the new backport branch
git checkout -b backport/53109/stable31

# Cherry pick the change from the commit sha1 of the change against the default branch
# This might cause conflicts, resolve them
git cherry-pick ef0729f2 30fc6800 e4897131

# Push the cherry pick commit to the remote repository and open a pull request
git push origin backport/53109/stable31

Error: Failed to clone repository: Failed to create working tree: error: cannot lock ref 'refs/remotes/origin/master': is at 4dcb282 but expected d3dd428
From https://github.com/nextcloud/server
! d3dd428..4dcb282 master -> origin/master (unable to update local ref)

  • [new branch] backport/53814/stable30 -> origin/backport/53814/stable30
  • [new branch] backport/53814/stable31 -> origin/backport/53814/stable31
    error: cannot lock ref 'refs/remotes/origin/enh/noid/taskpro-audio-chat': is at af059cb but expected cce12a9
    ! cce12a9...af059cb enh/noid/taskpro-audio-chat -> origin/enh/noid/taskpro-audio-chat (unable to update local ref)
    error: cannot lock ref 'refs/remotes/origin/feat/imailaddressvalidator': is at 46206ff but expected 8aba32b
    ! 8aba32b..46206ff feat/imailaddressvalidator -> origin/feat/imailaddressvalidator (unable to update local ref)
    error: cannot lock ref 'refs/remotes/origin/fix/FileList-render': is at e803366 but expected a74a269
    ! a74a269...e803366 fix/FileList-render -> origin/fix/FileList-render (unable to update local ref)
  • [new branch] fix/federatedfilesharing/dialog-callback -> origin/fix/federatedfilesharing/dialog-callback

Learn more about backports at https://docs.nextcloud.com/server/stable/go.php?to=developer-backports.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews bug feature: profile PRs or issues related to the Profile feature (e.g. Profile page, API, etc.) feedback-requested

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: "Faith could not update fediverse (e.g. mastodon)" [Bug]: Rejection of valid fediverse handles in user profile

5 participants