Closed kwaa closed 2 months ago
The changes across multiple files involve modifications to the verify
methods within various implementations of the ActivityHandler
trait. Specifically, the argument passed to the verify_blocked
function has been updated from self.id
to self.actor()
. This adjustment alters the context for user blocking verification, affecting how the identity of the actor is evaluated against the blocked list.
Files | Change Summary |
---|---|
crates/apub/src/activities/create_or_update/note.rs |
Modified verify method to call verify_blocked with self.actor() instead of self.id . |
crates/apub/src/activities/following/follow.rs |
Updated verify method to use self.actor() in verify_blocked call instead of self.id . |
crates/apub/src/activities/following/undo_follow.rs |
Changed verify method to pass self.actor() to verify_blocked instead of self.id . |
crates/apub/src/activities/like_or_announce/like_or_announce.rs |
Altered verify method to call verify_blocked with self.actor() instead of self.id . |
crates/apub/src/activities/like_or_announce/undo_like_or_announce.rs |
Updated verify method to use self.actor() in verify_blocked call instead of self.id . |
sequenceDiagram
participant A as Actor
participant V as Verify Method
participant B as Blocked List
A->>V: Call verify()
V->>B: Call verify_blocked(self.actor())
B-->>V: Return verification result
V-->>A: Return verification status
🐇 In the code where actors play,
A little change has come our way.
Fromid
toactor
, we now see,
A clearer path for you and me!
With every hop, we verify,
No blocks can hide, oh me, oh my! 🌟
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Summary by CodeRabbit
New Features
Bug Fixes