fixed problem with some replies
This commit is contained in:
parent
512688f5ab
commit
91600015b9
2 changed files with 2 additions and 2 deletions
|
@ -409,7 +409,7 @@ class NewPost(Helper.RestorableWindow):
|
|||
helpMenu.addAction(developerExtrasAction)
|
||||
|
||||
def load_finished(self, widget):
|
||||
callback = "function() { bungloo.newpost.setStatus('%s'); }" % (self.status_string)
|
||||
callback = "function() { bungloo.newpost.setStatus(\"%s\"); }" % (self.status_string)
|
||||
script = "function HostAppGo() { start('newpost', " + callback + "); }"
|
||||
self.webView.page().mainFrame().evaluateJavaScript(script)
|
||||
self.webView.setFocus()
|
||||
|
|
|
@ -555,7 +555,7 @@ function(jQuery, APICalls, URI, HostApp) {
|
|||
if(mentions) {
|
||||
for (var j = 0; j < mentions.length; j++) {
|
||||
var m = mentions[j];
|
||||
if(m.entity.startsWith(e)) {
|
||||
if(m && m.entity && m.entity.startsWith(e)) {
|
||||
mentions_in_text.push({
|
||||
entity: m.entity,
|
||||
text: name
|
||||
|
|
Reference in a new issue