]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/diary_comment.rb
Merge remote-tracking branch 'upstream/pull/4774'
[rails.git] / app / models / diary_comment.rb
index 8663212ebeef93a38dbd0ce7399f09e975ebfb04..55d2c3c84af76790de21916109eb0bacc31199a8 100644 (file)
@@ -42,7 +42,7 @@ class DiaryComment < ApplicationRecord
     sha256 << Rails.application.key_generator.generate_key("openstreetmap/diary_comment")
     sha256 << id.to_s
     sha256 << subscriber.to_s
-    sha256.base64digest[0, 8]
+    Base64.urlsafe_encode64(sha256.digest)[0, 8]
   end
 
   private