Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Thomas
Fedilab
Commits
853286fa
Commit
853286fa
authored
May 10, 2020
by
Thomas
Browse files
ouiches support
parent
23ed8fd3
Pipeline
#300079
passed with stage
in 6 minutes and 39 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
app/src/main/java/app/fedilab/android/client/Entities/Status.java
View file @
853286fa
...
...
@@ -320,8 +320,8 @@ public class Status implements Parcelable {
if
(
tag
==
null
){
continue
;
}
attachment
.
setRemote_url
(
"http
s
://ouich.es/mp3/"
+
tag
+
".mp3"
);
attachment
.
setUrl
(
"http
s
://ouich.es/mp3/"
+
tag
+
".mp3"
);
attachment
.
setRemote_url
(
"http://ouich.es/mp3/"
+
tag
+
".mp3"
);
attachment
.
setUrl
(
"http://ouich.es/mp3/"
+
tag
+
".mp3"
);
if
(
status
.
getMedia_attachments
()
==
null
)
{
status
.
setMedia_attachments
(
new
ArrayList
<>());
}
...
...
app/src/main/java/app/fedilab/android/helper/Helper.java
View file @
853286fa
...
...
@@ -512,6 +512,7 @@ public class Helper {
public
static
final
Pattern
twitterPattern
=
Pattern
.
compile
(
"((@[\\w]+)@twitter\\.com)"
);
public
static
final
Pattern
youtubePattern
=
Pattern
.
compile
(
"(www\\.|m\\.)?(youtube\\.com|youtu\\.be|youtube-nocookie\\.com)/(((?!([\"'<])).)*)"
);
public
static
final
Pattern
nitterPattern
=
Pattern
.
compile
(
"(mobile\\.|www\\.)?twitter.com([\\w-/]+)"
);
public
static
final
Pattern
ouichesPattern
=
Pattern
.
compile
(
"https://ouich\\.es/tag/(\\w+)"
);
public
static
final
Pattern
xmppPattern
=
Pattern
.
compile
(
"xmpp:[-a-zA-Z0-9+$&@#/%?=~_|!:,.;]*[-a-zA-Z0-9+&@#/%=~_|]"
);
//Default values
public
final
static
int
DEFAULT_VIDEO_WIDTH
=
640
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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