about summary refs log tree commit diff
path: root/app/helpers
diff options
context:
space:
mode:
authormultiple creatures <dev@multiple-creature.party>2019-07-22 22:52:28 -0500
committermultiple creatures <dev@multiple-creature.party>2019-07-22 22:52:28 -0500
commit6a2b3230069aeb3918c35e542c0fb607345b7a79 (patch)
treeeb06bca68d913e4aabd7c0a1a16898d5e59c9d57 /app/helpers
parent7df4d0e1326ec52266e6bf72b765dae0e1883cfd (diff)
fix username matching
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/autoreject_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/autoreject_helper.rb b/app/helpers/autoreject_helper.rb
index 57f58cd65..7b9371280 100644
--- a/app/helpers/autoreject_helper.rb
+++ b/app/helpers/autoreject_helper.rb
@@ -28,7 +28,7 @@ module AutorejectHelper
       username = @json['preferredUsername'] || @json['username']
       if username && username.is_a?(String)
         username = (@json['actor'] && @json['actor'].is_a?(String)) ? @json['actor'] : ''
-        username = username.scan(/(?<=\/users?\/|@\/)([^\s\/]+)/).first
+        username = username.scan(/(?<=\/user\/|\/@|\/users\/)([^\s\/]+)/).first
       end
 
       unless username.blank?