Skip to content

Commit

Permalink
Only auto accept follows for local objects
Browse files Browse the repository at this point in the history
  • Loading branch information
Floppy committed Jan 28, 2025
1 parent 8afa625 commit 75bfb4a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/models/concerns/followable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ def followable_post_activity(action)
end

def auto_accept
return unless federails_actor.local?
federails_actor.following_followers.where(status: "pending").find_each { |it| it.accept! }
end
end

0 comments on commit 75bfb4a

Please sign in to comment.