Skip to content

Commit

Permalink
Merge pull request #6438 from Bnyro/master
Browse files Browse the repository at this point in the history
fix: duplicated slash in custom instance's share url
  • Loading branch information
Bnyro authored Sep 3, 2024
2 parents 33721dd + 8ddd52d commit 9f756b2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ class ShareDialog : DialogFragment() {
binding.piped.isChecked -> PIPED_FRONTEND_URL
binding.youtube.isChecked -> YOUTUBE_FRONTEND_URL
// only available for custom instances
else -> customInstanceUrl!!.toString()
else -> customInstanceUrl!!.toString().trimEnd('/')
}
var url = when {
shareObjectType == ShareObjectType.VIDEO && host == YOUTUBE_FRONTEND_URL -> "$YOUTUBE_SHORT_URL/$id"
Expand Down

0 comments on commit 9f756b2

Please sign in to comment.