diff --git a/assets/PostItem.qml b/assets/PostItem.qml
index f7f3efa..55227d0 100644
--- a/assets/PostItem.qml
+++ b/assets/PostItem.qml
@@ -279,7 +279,7 @@ Container {
ActionItem {
title: qsTr("Reply")
onTriggered: {
- replySheet.text = "@" + ListItemData.user.username + " ";
+ replySheet.text = atMention(ListItemData.user.username);
replySheet.open();
replySheet.input.requestFocus();
}
@@ -288,7 +288,7 @@ Container {
ActionItem {
title: qsTr("Reply All")
onTriggered: {
- replySheet.text = "@" + ListItemData.user.username + " " + parseMentions(ListItemData.content.entities.mentions);
+ replySheet.text = atMention(ListItemData.user.username) + parseMentions(ListItemData.content.entities.mentions);
console.log(JSON.stringify(ListItemData.content.entities.mentions))
replySheet.open();
replySheet.input.requestFocus();
@@ -383,9 +383,7 @@ Container {
var mtext = ""
for(var i = 0; i < mentions.length; i++) {
var mu = mentions[i].text
- if (mu !== postitem.ListItem.view.getUserName()) {
- mtext += "@" + mu + " "
- }
+ mtext += atMention(mu)
}
if (mtext.length > 0) {
if (postitem.ListItem.view.ccOnReply()) {
@@ -397,4 +395,11 @@ Container {
return ""
}
}
+ function atMention(username) {
+ var atname = ""
+ if (username !== postitem.ListItem.view.getUserName()) {
+ atname = "@" + username + " "
+ }
+ return atname
+ }
}
diff --git a/translations/Goober.ts b/translations/Goober.ts
index 49411e7..6ebbc4e 100644
--- a/translations/Goober.ts
+++ b/translations/Goober.ts
@@ -48,47 +48,47 @@
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+