aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2024-02-02 14:25:46 +0300
committerGravatar Vitaly Takmazov2024-02-02 14:58:56 +0300
commit0e2aab26f08a6ec4f187c1a845d0a9b0e8f4bf99 (patch)
treea8492860d3f92e5549b112e881147515ae9e1976 /src/main
parent5ef424120ed694b1f69daeafaa1454455d13dee2 (diff)
Use <blockquote /> tag for quotes
* fix compatibility with Mastodon
Diffstat (limited to 'src/main')
-rw-r--r--src/main/assets/style.css5
-rw-r--r--src/main/java/com/juick/util/MessageUtils.java4
2 files changed, 4 insertions, 5 deletions
diff --git a/src/main/assets/style.css b/src/main/assets/style.css
index e8ddad56..2a5d5a61 100644
--- a/src/main/assets/style.css
+++ b/src/main/assets/style.css
@@ -584,11 +584,10 @@ article .tags > a::before,
/* #region user-generated texts */
-q:before,
-q:after {
+blockquote:before,
+blockquote:after {
content: "";
}
-q,
blockquote {
border-left: 3px solid #CCC;
color: #666;
diff --git a/src/main/java/com/juick/util/MessageUtils.java b/src/main/java/com/juick/util/MessageUtils.java
index ff0641ae..a4407f17 100644
--- a/src/main/java/com/juick/util/MessageUtils.java
+++ b/src/main/java/com/juick/util/MessageUtils.java
@@ -228,8 +228,8 @@ public class MessageUtils {
if (!compatibleWithDurov) {
// > citate
- msg = msg.replaceAll(citateRegex, "<q>$1</q>");
- msg = msg.replaceAll("</q><q>", "\n");
+ msg = msg.replaceAll(citateRegex, "<blockquote>$1</blockquote>");
+ msg = msg.replaceAll("</blockquote><blockquote>", "\n");
msg = msg.replaceAll("\n", "<br/>\n");
}