mirror of
https://gitlab.futo.org/videostreaming/grayjay.git
synced 2025-08-03 14:50:49 +00:00
Use harbor links instead of polycentric
This commit is contained in:
parent
a54a5081e6
commit
15c0d02c13
2 changed files with 4 additions and 4 deletions
|
@ -221,8 +221,8 @@ class CommentsFragment : MainFragment() {
|
||||||
|
|
||||||
Logger.i(TAG, "onAuthorClick: " + c.author.id.value);
|
Logger.i(TAG, "onAuthorClick: " + c.author.id.value);
|
||||||
if(c.author.id.value?.startsWith("polycentric://") ?: false) {
|
if(c.author.id.value?.startsWith("polycentric://") ?: false) {
|
||||||
//val navUrl = "https://harbor.social/" + c.author.id.value?.substring("polycentric://".length);
|
val navUrl = "https://harbor.social/" + c.author.id.value?.substring("polycentric://".length);
|
||||||
val navUrl = "https://polycentric.io/user/" + c.author.id.value?.substring("polycentric://".length);
|
//val navUrl = "https://polycentric.io/user/" + c.author.id.value?.substring("polycentric://".length);
|
||||||
_fragment.startActivity(Intent(Intent.ACTION_VIEW, Uri.parse(navUrl)))
|
_fragment.startActivity(Intent(Intent.ACTION_VIEW, Uri.parse(navUrl)))
|
||||||
//_fragment.navigate<BrowserFragment>(navUrl);
|
//_fragment.navigate<BrowserFragment>(navUrl);
|
||||||
}
|
}
|
||||||
|
|
|
@ -660,8 +660,8 @@ class VideoDetailView : ConstraintLayout {
|
||||||
|
|
||||||
Logger.i(TAG, "onAuthorClick: " + c.author.id.value);
|
Logger.i(TAG, "onAuthorClick: " + c.author.id.value);
|
||||||
if(c.author.id.value?.startsWith("polycentric://") ?: false) {
|
if(c.author.id.value?.startsWith("polycentric://") ?: false) {
|
||||||
//val navUrl = "https://harbor.social/" + c.author.id.value?.substring("polycentric://".length);
|
val navUrl = "https://harbor.social/" + c.author.id.value?.substring("polycentric://".length);
|
||||||
val navUrl = "https://polycentric.io/user/" + c.author.id.value?.substring("polycentric://".length);
|
//val navUrl = "https://polycentric.io/user/" + c.author.id.value?.substring("polycentric://".length);
|
||||||
fragment.startActivity(Intent(Intent.ACTION_VIEW, Uri.parse(navUrl)))
|
fragment.startActivity(Intent(Intent.ACTION_VIEW, Uri.parse(navUrl)))
|
||||||
//_container_content_browser.goto(navUrl);
|
//_container_content_browser.goto(navUrl);
|
||||||
//switchContentView(_container_content_browser);
|
//switchContentView(_container_content_browser);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue