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)
|
helpMenu.addAction(developerExtrasAction)
|
||||||
|
|
||||||
def load_finished(self, widget):
|
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 + "); }"
|
script = "function HostAppGo() { start('newpost', " + callback + "); }"
|
||||||
self.webView.page().mainFrame().evaluateJavaScript(script)
|
self.webView.page().mainFrame().evaluateJavaScript(script)
|
||||||
self.webView.setFocus()
|
self.webView.setFocus()
|
||||||
|
|
|
@ -555,7 +555,7 @@ function(jQuery, APICalls, URI, HostApp) {
|
||||||
if(mentions) {
|
if(mentions) {
|
||||||
for (var j = 0; j < mentions.length; j++) {
|
for (var j = 0; j < mentions.length; j++) {
|
||||||
var m = mentions[j];
|
var m = mentions[j];
|
||||||
if(m.entity.startsWith(e)) {
|
if(m && m.entity && m.entity.startsWith(e)) {
|
||||||
mentions_in_text.push({
|
mentions_in_text.push({
|
||||||
entity: m.entity,
|
entity: m.entity,
|
||||||
text: name
|
text: name
|
||||||
|
|
Reference in a new issue