diff options
Diffstat (limited to 'app/helpers')
-rw-r--r-- | app/helpers/autoreject_helper.rb | 2 |
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? |