about summary refs log tree commit diff
path: root/app/models
diff options
context:
space:
mode:
authorNick Schonning <nschonni@gmail.com>2023-02-20 00:51:43 -0500
committerGitHub <noreply@github.com>2023-02-20 06:51:43 +0100
commitd2dcb6c45a9db5439772f0553046e2c03a739a16 (patch)
tree1cfd9390ef2010ad8516f724d09bd02955de7764 /app/models
parent5116347eb7cfd0a09f55efbd84f8d3fa11d4d6ba (diff)
Autofix Rubocop Style/UnpackFirst (#23741)
Diffstat (limited to 'app/models')
-rw-r--r--app/models/concerns/account_interactions.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/concerns/account_interactions.rb b/app/models/concerns/account_interactions.rb
index 325619774..1898516b0 100644
--- a/app/models/concerns/account_interactions.rb
+++ b/app/models/concerns/account_interactions.rb
@@ -278,7 +278,7 @@ module AccountInteractions
       followers.where(Account.arel_table[:uri].matches("#{Account.sanitize_sql_like(url_prefix)}/%", false, true)).or(followers.where(uri: url_prefix)).pluck_each(:uri) do |uri|
         Xorcist.xor!(digest, Digest::SHA256.digest(uri))
       end
-      digest.unpack('H*')[0]
+      digest.unpack1('H*')
     end
   end
 
@@ -288,7 +288,7 @@ module AccountInteractions
       followers.where(domain: nil).pluck_each(:username) do |username|
         Xorcist.xor!(digest, Digest::SHA256.digest(ActivityPub::TagManager.instance.uri_for_username(username)))
       end
-      digest.unpack('H*')[0]
+      digest.unpack1('H*')
     end
   end