Browse Source

Update Nickname lexer

Daniel Supernault 7 years ago
parent
commit
e96fa8ce72
1 changed files with 4 additions and 0 deletions
  1. 4 0
      app/Util/Lexer/Nickname.php

+ 4 - 0
app/Util/Lexer/Nickname.php

@@ -6,6 +6,10 @@ class Nickname {
 
     public static function normalizeProfileUrl($url)
     {
+      if(starts_with($url, 'acct:')) {
+        $url = str_replace('acct:', '', $url);
+      }
+
       if(!str_contains($url, '@') && filter_var($url, FILTER_VALIDATE_URL)) {
         $parsed = parse_url($url);
         $username = str_replace(['/','\\','@'], '', $parsed['path']);