mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-14 03:57:30 -06:00
[bugfix] Punycode fixes (#1743)
Co-authored-by: kim <grufwub@gmail.com> Co-authored-by: kim <89579420+NyaaaWhatsUpDoc@users.noreply.github.com>
This commit is contained in:
parent
b7dd32da42
commit
37b4d9d179
11 changed files with 409 additions and 211 deletions
|
|
@ -193,11 +193,6 @@ func IsOutboxPath(id *url.URL) bool {
|
|||
return regexes.OutboxPath.MatchString(id.Path)
|
||||
}
|
||||
|
||||
// IsInstanceActorPath returns true if the given URL path corresponds to eg /actors/example_username
|
||||
func IsInstanceActorPath(id *url.URL) bool {
|
||||
return regexes.ActorPath.MatchString(id.Path)
|
||||
}
|
||||
|
||||
// IsFollowersPath returns true if the given URL path corresponds to eg /users/example_username/followers
|
||||
func IsFollowersPath(id *url.URL) bool {
|
||||
return regexes.FollowersPath.MatchString(id.Path)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue