fixed problem with unread mentions and reposts
This commit is contained in:
parent
2b8782bed9
commit
9a999ba2cc
1 changed files with 21 additions and 14 deletions
|
@ -83,8 +83,11 @@ function(HostApp, Timeline, URI, Paths, Core) {
|
||||||
|
|
||||||
Mentions.prototype.updateLatestMentionRead = function() {
|
Mentions.prototype.updateLatestMentionRead = function() {
|
||||||
|
|
||||||
var status = this.body.firstChild.status;
|
for (var i = 0; i < this.body.childNodes.length; i++) {
|
||||||
|
|
||||||
|
var status = this.body.childNodes[i].status;
|
||||||
|
|
||||||
|
if (!status.__repost) {
|
||||||
if (status && status.type == "https://tent.io/types/post/status/v0.1.0") {
|
if (status && status.type == "https://tent.io/types/post/status/v0.1.0") {
|
||||||
|
|
||||||
var url = URI(Paths.mkApiRootPath("/profile/" + encodeURIComponent("https://tent.io/types/info/cursor/v0.1.0")));
|
var url = URI(Paths.mkApiRootPath("/profile/" + encodeURIComponent("https://tent.io/types/info/cursor/v0.1.0")));
|
||||||
|
@ -103,6 +106,10 @@ function(HostApp, Timeline, URI, Paths, Core) {
|
||||||
|
|
||||||
Paths.getURL(url.toString(), "PUT", callback, JSON.stringify(body));
|
Paths.getURL(url.toString(), "PUT", callback, JSON.stringify(body));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Reference in a new issue