Fix rubocop nits

This commit is contained in:
Andreas Nedbal 2024-01-23 20:47:38 +01:00 committed by Andreas Nedbal
parent 05634ae69d
commit 5a17466999
1 changed files with 1 additions and 1 deletions

View File

@ -149,7 +149,7 @@ class User < ApplicationRecord
# region stuff used for reporting/moderation # region stuff used for reporting/moderation
def report(object, reason = nil) def report(object, reason = nil)
target_user = if object.class.to_s == "User" target_user = if object.instance_of?(::User)
object object
elsif object.respond_to? :user elsif object.respond_to? :user
object.user object.user