Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Thomas
UntrackMe
Commits
f12e4786
Commit
f12e4786
authored
Sep 30, 2022
by
Thomas
Browse files
Merge branch 'tiktok_t' into 'develop'
Add tiktok.com/t support (closes
#85
) Closes
#85
See merge request
!153
parents
20d81436
3f9ce8c1
Pipeline
#536996
passed with stage
in 2 minutes and 35 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
app/src/main/java/app/fedilab/nitterizeme/helpers/Utils.java
View file @
f12e4786
...
...
@@ -475,7 +475,7 @@ public class Utils {
Matcher
matcher
=
tiktokPattern
.
matcher
(
url
);
while
(
matcher
.
find
())
{
String
path
=
matcher
.
group
(
2
);
if
(
path
==
null
||
path
.
trim
().
equals
(
""
)
||
path
.
startsWith
(
"@"
)
||
path
.
startsWith
(
"music"
)
||
path
.
startsWith
(
"tag"
))
{
if
(
path
==
null
||
path
.
trim
().
equals
(
""
)
||
path
.
startsWith
(
"@"
)
||
path
.
startsWith
(
"music"
)
||
path
.
startsWith
(
"tag"
)
||
path
.
startsWith
(
"t"
)
)
{
newUrl
=
url
.
replace
(
host
,
proxitokHost
);
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment