[shotwell/shotwell-0.30] tumblr: Fix publishing url



commit 09e22a45495c35edeb168c05e3959cea3744f001
Author: Jens Georg <mail jensge org>
Date:   Mon Dec 23 19:42:16 2019 +0100

    tumblr: Fix publishing url
    
    Was caused by switching to https a while ago
    
    Fixes #196

 plugins/shotwell-publishing/TumblrPublishing.vala | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/plugins/shotwell-publishing/TumblrPublishing.vala 
b/plugins/shotwell-publishing/TumblrPublishing.vala
index 1da9c614..7061d6db 100644
--- a/plugins/shotwell-publishing/TumblrPublishing.vala
+++ b/plugins/shotwell-publishing/TumblrPublishing.vala
@@ -233,7 +233,7 @@ namespace Publishing.Tumblr {
                 foreach (var blognode in 
root_object.get_object_member("response").get_object_member("user").get_array_member("blogs").get_elements 
()) {
                     var blog = blognode.get_object ();
                     string name = blog.get_string_member ("name");
-                    string url = blog.get_string_member ("url").replace("http://","";).replace("/","");
+                    string url = blog.get_string_member ("url").replace("http://","";).replace("https://";, 
"").replace("/","");
                     debug("Got blog name: %s and url: %s", name, url);
                     this.blogs += new BlogEntry(name,url);
                 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]