Skip to content

Accept InstanceActor in DeleteHandler - #1470

Draft
shleeable wants to merge 1 commit into
mainfrom
fix-delete-handler-instance-actor
Draft

shleeable wants to merge 1 commit into
mainfrom
fix-delete-handler-instance-actor

Conversation

@shleeable

@shleeable shleeable commented Sep 10, 2026 •

Copy link
Copy Markdown
Contributor

@dansup please confirm and close if you're unhappy with this.

Not yet validated and no tests.

- Widen $actor type from ?Profile to Profile|InstanceActor|null across
  handle, handleProfileDelete, handleTombstoneDelete and handleGenericDelete
  so InstanceActor-originated Delete activities no longer throw a TypeError
- Use $actor?->uri instead of $actor->username in handleGenericDelete
  (InstanceActor has no username property)
- Catch \Throwable instead of \Exception to cover type/error failures
@shleeable
shleeable marked this pull request as draft September 10, 2026 10:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant