This commit is contained in:
evazion
2022-11-05 15:13:27 -05:00
parent fcb68048e3
commit ab08ad24e6
2 changed files with 5 additions and 0 deletions

View File

@@ -27,6 +27,10 @@ class Source::URL::Mastodon < Source::URL
in _, _, /^@/ => username, *rest
@username = username.delete_prefix("@")
# https://baraag.net/web/@loodncrood
in _, _, "web", /^@/ => username, *rest
@username = username.delete_prefix("@")
# https://pawoo.net/users/esoraneko
# https://pawoo.net/users/khurata/media
in _, _, "users", username, *rest