Use harbor links instead of polycentric

This commit is contained in:
Kelvin 2024-08-28 21:21:00 +02:00
commit 15c0d02c13
2 changed files with 4 additions and 4 deletions

View file

@ -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);
} }

View file

@ -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);