@@ -14,12 +19,12 @@
class="feed__repost-avatar"
:style="`background-image: url('${post.reblog_avatars[0]}');`"
>
-
+
{{post.reblog_by[0]}}
-
+
-
+
@@ -15,10 +20,12 @@
{{post.author}}
-
- {{post.title}}
+
+
+ nsfw
+ {{post.title}}
-
+
@@ -80,11 +87,8 @@ export default {
isRepost() {
return this.account.name !== this.post.author
},
- cutTitle() {
- return parser.cutTitle(this.chain, this.post.title)
- },
cutPreview() {
- return parser.cutPreview(this.chain, this.post.preview, this.isRepost)
+ return parser.cutPreview(this.post.preview)
}
},
methods: {
diff --git a/common/@oneplace/blockchains-api/parser.js b/common/@oneplace/blockchains-api/parser.js
index f0c050a..fd07ad3 100644
--- a/common/@oneplace/blockchains-api/parser.js
+++ b/common/@oneplace/blockchains-api/parser.js
@@ -374,25 +374,8 @@ class Parser {
})
}
- static cutTitle(chain, title) {
- const STR_LIMIT = chain === CONSTANTS.BLOCKCHAIN.SOURCE.GOLOS ? 70 : 80
- if (title.length > STR_LIMIT) {
- title =
- title.substring(
- 0,
- title
- .substr(0, STR_LIMIT)
- .split('')
- .lastIndexOf(' ')
- ) + '...'
- }
- return title
- }
-
- static cutPreview(chain, preview, isRepost) {
- let STR_LIMIT = isRepost ? 50 : 110
- if (chain === CONSTANTS.BLOCKCHAIN.SOURCE.GOLOS)
- STR_LIMIT = isRepost ? 50 : 90
+ static cutPreview(preview) {
+ let STR_LIMIT = 200
if (preview.length > STR_LIMIT) {
preview =