Detect Bookwyrm URL formats (#3936)
While helping test an issue with [Bookwyrm](https://github.com/bookwyrm-social/bookwyrm) I noticed that the URL formats used by that project aren't checked as possible profile or post links. They're quite close to a couple of others, so I just copied close examples and edited a couple of terms. It's pretty minor, I just used a previous commit as a reference. Let me know if it needs anything more though. I've only quickly tested it on a local build with a couple of links against a live Bookwyrm and it picks them up as expected now.
This commit is contained in:
commit
02404564e0
2 changed files with 7 additions and 2 deletions
|
|
@ -348,7 +348,6 @@ class LinkHelperTest {
|
|||
arrayOf("https://pleroma.foo.bar/users/", false),
|
||||
arrayOf("https://pleroma.foo.bar/users/meow/", false),
|
||||
arrayOf("https://pleroma.foo.bar/users/@meow", false),
|
||||
arrayOf("https://pleroma.foo.bar/user/2345", false),
|
||||
arrayOf("https://pleroma.foo.bar/notices/123456", false),
|
||||
arrayOf("https://pleroma.foo.bar/notice/@neverhappen/", false),
|
||||
arrayOf("https://pleroma.foo.bar/object/abcdef-123-abcd-9876543", false),
|
||||
|
|
@ -367,7 +366,9 @@ class LinkHelperTest {
|
|||
arrayOf("https://pixelfed.social/connyduck", true),
|
||||
arrayOf("https://gts.foo.bar/@goblin/statuses/01GH9XANCJ0TA8Y95VE9H3Y0Q2", true),
|
||||
arrayOf("https://gts.foo.bar/@goblin", true),
|
||||
arrayOf("https://foo.microblog.pub/o/5b64045effd24f48a27d7059f6cb38f5", true)
|
||||
arrayOf("https://foo.microblog.pub/o/5b64045effd24f48a27d7059f6cb38f5", true),
|
||||
arrayOf("https://bookwyrm.foo.bar/user/User", true),
|
||||
arrayOf("https://bookwyrm.foo.bar/user/User/comment/123456", true)
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue