mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-07 02:49:32 -06:00
some lil fixes for kibou compatibility
This commit is contained in:
parent
6994859d03
commit
d9d9a7a626
12 changed files with 102 additions and 36 deletions
|
|
@ -189,6 +189,11 @@ func IsFollowingPath(id *url.URL) bool {
|
|||
return followingPathRegex.MatchString(id.Path)
|
||||
}
|
||||
|
||||
// IsFollowPath returns true if the given URL path corresponds to eg /users/example_username/follow/SOME_ULID_OF_A_FOLLOW
|
||||
func IsFollowPath(id *url.URL) bool {
|
||||
return followPathRegex.MatchString(id.Path)
|
||||
}
|
||||
|
||||
// IsLikedPath returns true if the given URL path corresponds to eg /users/example_username/liked
|
||||
func IsLikedPath(id *url.URL) bool {
|
||||
return likedPathRegex.MatchString(id.Path)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue