Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

Commit

Permalink
Change style of hidden msg again
Browse files Browse the repository at this point in the history
  • Loading branch information
Powersource committed Apr 26, 2019
1 parent b3a9656 commit cf9e42f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
5 changes: 3 additions & 2 deletions locales/en.json
Expand Up @@ -308,5 +308,6 @@
" is hidden because they are blocked by the thread author ": " is hidden because they are blocked by the thread author ",
"Click here": "Click here",
" to view the post in a fork of this thread.": " to view the post in a fork of this thread.",
"Error": "Error"
}
"Error": "Error",
" replied but is blocked by ": " replied but is blocked by "
}
14 changes: 9 additions & 5 deletions modules/page/html/render/message.js
Expand Up @@ -10,6 +10,7 @@ var Blog = require('scuttle-blog')
exports.needs = nest({
'keys.sync.id': 'first',
'sbot.pull.stream': 'first',
'message.obs.name': 'first',
'message.sync.root': 'first',
'message.html.render': 'first',
'message.html.compose': 'first',
Expand Down Expand Up @@ -185,11 +186,14 @@ exports.create = function (api) {
element = h('Message', [
h('a.backlink', {
href: msg.key
}, [i18n('This post by '),
api.profile.html.person(msg.value.author),
i18n(' is hidden because they are blocked by the thread author '),
api.profile.html.person(msg.blockedBy.id),
'.'
}, [
h('strong', [
api.profile.html.person(msg.value.author),
i18n(' replied but is blocked by '),
api.profile.html.person(msg.blockedBy.id),
':'
]), ' ',
api.message.obs.name(msg.key)
])
])
} else {
Expand Down

0 comments on commit cf9e42f

Please sign in to comment.