Skip to content

chore: remove dead hook listener - #64392

Open
susnux wants to merge 2 commits into
masterfrom
worktree-remove-dead-postadduser-listener
Open

susnux wants to merge 2 commits into
masterfrom
worktree-remove-dead-postadduser-listener

Conversation

@susnux

@susnux susnux commented Sep 15, 2026

Copy link
Copy Markdown
Contributor

Summary

there is nothing like IGroup::postUserAdded but only OC\Group::postUserAdded.
So this listener was dead for a while - rewired with the proper event instead.

Checklist

AI (if applicable)

Tests generated with help of AI!

  • The content of this PR was partly or fully generated using AI

@susnux susnux added this to the Nextcloud 36 milestone Sep 15, 2026
@susnux
susnux requested a review from a team as a code owner September 15, 2026 20:57
@susnux susnux added 3. to review Waiting for reviews technical debt 🧱 🤔🚀 labels Sep 15, 2026
@susnux
susnux requested review from Altahrim and removed request for a team September 15, 2026 20:57
@susnux susnux added the php Pull requests that update Php code label Sep 15, 2026
@susnux
susnux force-pushed the worktree-remove-dead-postadduser-listener branch from 43d01d4 to b5b36d6 Compare September 15, 2026 20:58
Comment thread apps/files_sharing/lib/AppInfo/Application.php Outdated
…ddUser hook

The `IGroup::class . '::postAddUser'` event this listener subscribed to is
not dispatched anywhere; `\OC\Group\Group` only emits the legacy
`\OC\Group`/`postAddUser` signal on the `Emitter`, which never reaches the
event dispatcher. Drop the registration together with the now unreachable
`Notification\Listener::userAddedToGroup()` and its share manager
dependency. Auto-accepting group shares stays covered by
`UserAddedToGroupListener`, which listens to the typed `UserAddedEvent`.

Assisted-by: ClaudeCode:claude-opus-5
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
@susnux
susnux force-pushed the worktree-remove-dead-postadduser-listener branch 2 times, most recently from bd7d128 to 842fa04 Compare September 16, 2026 13:58
…roup

Reimplements the notification that was lost with the dead postAddUser
listener as a listener on the typed UserAddedEvent.

Assisted-by: ClaudeCode:claude-opus-5
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
@susnux
susnux force-pushed the worktree-remove-dead-postadduser-listener branch from 842fa04 to c72a60f Compare September 16, 2026 14:05

@cristianscheid cristianscheid left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

lgtm

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 AI assisted php Pull requests that update Php code technical debt 🧱 🤔🚀

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants