Added code to put the 'http://' onto a URL in the actual toot, so that Mastodon web app treats it as a URL too.

This commit is contained in:
PhotonQyv 2017-11-29 12:15:38 +00:00
parent 8433fdc8c2
commit 4e23de5f32
1 changed files with 2 additions and 0 deletions

View File

@ -392,6 +392,8 @@ public class TootActivity extends AppCompatActivity implements OnRetrieveSearcAc
String title = intent.getStringExtra("title");
String description = intent.getStringExtra("description");
if( description != null && description.length() > 0){
if (sharedContentIni.startsWith("www."))
sharedContentIni = "http://" + sharedContentIni;
if( title != null && title.length() > 0)
sharedContent = title + "\n\n" + description + "\n\n" + sharedContentIni;
else