From ea0cd6c7ac8ddf0f62a8b541d1b55cd86e916783 Mon Sep 17 00:00:00 2001 From: testvariation Date: Tue, 29 Jan 2013 01:22:15 +0100 Subject: [PATCH 1/5] no deleted posts in counts or profiles --- WebKit/scripts/controller/Profile.js | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/WebKit/scripts/controller/Profile.js b/WebKit/scripts/controller/Profile.js index 1e1b2d0..341009f 100644 --- a/WebKit/scripts/controller/Profile.js +++ b/WebKit/scripts/controller/Profile.js @@ -292,7 +292,15 @@ function(HostApp, Core, Paths, URI) { _this.populate(_this.profile_template.followed, resp.responseText); }, null, false); - Paths.getURL(URI(root_url + "/posts/count").toString(), "GET", function(resp) { + var url = URI(root_url + "/posts/count"); + var post_types = [ + "https://tent.io/types/post/repost/v0.1.0", + "https://tent.io/types/post/status/v0.1.0", + "https://tent.io/types/post/photo/v0.1.0" + ]; + url.addSearch("post_types", post_types.join(",")); + + Paths.getURL(url.toString(), "GET", function(resp) { _this.populate(_this.profile_template.posts, resp.responseText); }, null, false); @@ -308,7 +316,6 @@ function(HostApp, Core, Paths, URI) { var post_types = [ "https://tent.io/types/post/repost/v0.1.0", "https://tent.io/types/post/status/v0.1.0", - "https://tent.io/types/post/delete/v0.1.0", "https://tent.io/types/post/photo/v0.1.0" ]; url.addSearch("post_types", post_types.join(",")); From 9adf7c49753aecf4575e0de9c2a9bcc136bc9f5c Mon Sep 17 00:00:00 2001 From: noformnocontent Date: Tue, 29 Jan 2013 02:21:41 +0100 Subject: [PATCH 2/5] =?UTF-8?q?added=20=E2=80=9Cfollows=20since=20=E2=80=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- WebKit/scripts/controller/Profile.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/WebKit/scripts/controller/Profile.js b/WebKit/scripts/controller/Profile.js index 341009f..33fc2ef 100644 --- a/WebKit/scripts/controller/Profile.js +++ b/WebKit/scripts/controller/Profile.js @@ -329,6 +329,7 @@ function(HostApp, Core, Paths, URI) { }, null, false); } + Profile.prototype.newStatus = function(statuses) { if(statuses != null && statuses.length > 0) { for(var i = statuses.length-1, c=0; i>=c; --i) { @@ -501,7 +502,18 @@ function(HostApp, Core, Paths, URI) { entity_tag.href = profile.entity; entity_tag.title = profile.entity; + var follows_since = document.createElement("p"); + follows_since.innerText = "follows since "; + + var follows_since_time = document.createElement("span"); + follows_since_time.innerText = this.ISODateString(new Date(profile.created_at * 1000)); + follows_since_time.title = follows_since_time.innerText; + follows_since_time.className = "timeago"; + jQuery(follows_since_time).timeago(); + p.appendChild(entity_tag); + follows_since.appendChild(follows_since_time); + p.appendChild(follows_since); div.appendChild(p); var profile_callback = function(p) { From 612870a9412cabdc52d170d06e68a8d454c0829b Mon Sep 17 00:00:00 2001 From: noformnocontent Date: Tue, 29 Jan 2013 11:03:59 +0100 Subject: [PATCH 3/5] p>p to br+text+span --- WebKit/scripts/controller/Profile.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/WebKit/scripts/controller/Profile.js b/WebKit/scripts/controller/Profile.js index 33fc2ef..bb7b401 100644 --- a/WebKit/scripts/controller/Profile.js +++ b/WebKit/scripts/controller/Profile.js @@ -502,9 +502,8 @@ function(HostApp, Core, Paths, URI) { entity_tag.href = profile.entity; entity_tag.title = profile.entity; - var follows_since = document.createElement("p"); - follows_since.innerText = "follows since "; - + var new_line = document.createElement("br"); + var follows_since = document.createTextNode("follows since "); var follows_since_time = document.createElement("span"); follows_since_time.innerText = this.ISODateString(new Date(profile.created_at * 1000)); follows_since_time.title = follows_since_time.innerText; @@ -512,8 +511,9 @@ function(HostApp, Core, Paths, URI) { jQuery(follows_since_time).timeago(); p.appendChild(entity_tag); - follows_since.appendChild(follows_since_time); + p.appendChild(new_line); p.appendChild(follows_since); + p.appendChild(follows_since_time); div.appendChild(p); var profile_callback = function(p) { From 7284dd5b02d6e16a9a2db8198c78a9b34ca813b6 Mon Sep 17 00:00:00 2001 From: noformnocontent Date: Tue, 29 Jan 2013 13:39:01 +0100 Subject: [PATCH 4/5] no .DS_Store --- .DS_Store | Bin 6148 -> 0 bytes .gitignore | 1 - WebKit/index.html | 4 ++-- 3 files changed, 2 insertions(+), 3 deletions(-) delete mode 100644 .DS_Store diff --git a/.DS_Store b/.DS_Store deleted file mode 100644 index 4d9bfd3052d28c03cd12f22832e2889e23650b8c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6148 zcmeHKJ!->H43-)Xfi501KIk6E4IaVm1#*Ev3~8Xo8Is+Qp-1TzI`jxVQKx+RNw6_q zJG2r=pP!z-XZss0i->rAu2)1Q5zXO(^e$m+vM)Ze2hS8hmNVY=tIe)$j-$%ygm4R5 z(w+`<8t^}!e)@Y&TUGV>v?Kcddb#Lns6Gk^pAM&JYf#*cvL5*7;l Gh5}c5HYbVz diff --git a/.gitignore b/.gitignore index 6b81198..6654f93 100644 --- a/.gitignore +++ b/.gitignore @@ -2,7 +2,6 @@ Mac/build/ Mac/Tentia.xcodeproj/project.xcworkspace/xcuserdata/jeena.xcuserdatad/UserInterfaceState.xcuserstate dsa_priv.pem *.pyc -Mac/.DS_Store build .DS_Store *~ diff --git a/WebKit/index.html b/WebKit/index.html index 7bcd24c..6d81a6b 100644 --- a/WebKit/index.html +++ b/WebKit/index.html @@ -1,5 +1,5 @@ - - + + Tentia From 4883f26c11d03afb5a7a69d95e92fc3bdabbbef7 Mon Sep 17 00:00:00 2001 From: noformnocontent Date: Tue, 29 Jan 2013 14:15:26 +0100 Subject: [PATCH 5/5] app-category: social-networking --- Mac/Tentia-Info.plist | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Mac/Tentia-Info.plist b/Mac/Tentia-Info.plist index ab621f6..3122d96 100644 --- a/Mac/Tentia-Info.plist +++ b/Mac/Tentia-Info.plist @@ -59,7 +59,7 @@ CFBundleVersion 0.6.1 LSApplicationCategoryType - public.app-category.lifestyle + public.app-category.social-networking LSMinimumSystemVersion ${MACOSX_DEPLOYMENT_TARGET} NSMainNibFile