diff options
author | multiple creatures <dev@multiple-creature.party> | 2019-07-22 22:52:28 -0500 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2019-07-22 22:52:28 -0500 |
commit | 6a2b3230069aeb3918c35e542c0fb607345b7a79 (patch) | |
tree | eb06bca68d913e4aabd7c0a1a16898d5e59c9d57 | |
parent | 7df4d0e1326ec52266e6bf72b765dae0e1883cfd (diff) |
fix username matching
-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? |