Repository navigation
Commit 190da99
committed
Harden inbox actor handling and Note dispatcher
Use the `isActor()` predicate from `@fedify/vocab` instead of
`instanceof Person` when accepting an incoming Follow. Throwing on
non-Person actors caused Fedify to treat the inbox delivery as
failed and the remote server to retry indefinitely, even though
`Service`, `Application`, `Group`, and `Organization` are all valid
ActivityPub actors.
Validate the path identifier inside the Note object dispatcher so
the demo follows the same `IDENTIFIER` guard pattern already used
by the actor, key-pairs, and followers dispatchers in this file.
The current `postStore` shape makes the mismatch unreachable, but
the explicit guard makes the invariant local instead of relying on
how posts happen to be keyed.
fedify-dev#676
Assisted-by: Claude Code:claude-opus-4-71 parent a88e611 commit 190da99
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
90 | 91 | | |
91 | 92 | | |
92 | 93 | | |
93 | | - | |
94 | | - | |
95 | | - | |
| 94 | + | |
96 | 95 | | |
97 | 96 | | |
98 | 97 | | |
| |||
125 | 124 | | |
126 | 125 | | |
127 | 126 | | |
| 127 | + | |
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
| |||
0 commit comments