aboutsummaryrefslogtreecommitdiff
path: root/src/main/resources
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2023-04-26 09:11:53 +0300
committerGravatar Vitaly Takmazov2023-04-26 09:12:11 +0300
commit90201606bb485988f5a85cd578f3f5b8ecddf4db (patch)
tree009e6691d9b32e1cb8605592fcaeed2b8e90977a /src/main/resources
parentbd521d4b86f9b3b16caaba714d04e05c2f288847 (diff)
Expose `friendsOnly` message property over API
Diffstat (limited to 'src/main/resources')
-rw-r--r--src/main/resources/templates/views/partial/message.html2
-rw-r--r--src/main/resources/templates/views/thread.html4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/main/resources/templates/views/partial/message.html b/src/main/resources/templates/views/partial/message.html
index e9ddd3db..219b1b1a 100644
--- a/src/main/resources/templates/views/partial/message.html
+++ b/src/main/resources/templates/views/partial/message.html
@@ -7,7 +7,7 @@
<img src="{{ msg.user.avatar }}" alt="{{ msg.user.name }}"/></a>
</div>
<div class="msg-ts">
- {% if msg.FriendsOnly %}
+ {% if msg.friendsOnly %}
<i data-icon="ei-lock" data-size="s"></i> &middot;
{% endif %}
<a href="/{{ msg.user.name }}/{{ msg.mid }}">
diff --git a/src/main/resources/templates/views/thread.html b/src/main/resources/templates/views/thread.html
index 819a627e..3974fddb 100644
--- a/src/main/resources/templates/views/thread.html
+++ b/src/main/resources/templates/views/thread.html
@@ -12,7 +12,7 @@
<a href="/{{ msg.user.name }}/"><span>{{ msg.user.name }}</span>{% if msg.user.premium %}<span style="color: green;"><i data-icon="ei-star" data-size="s"></i></span>{% endif %}</a>
</span>
<div class="msg-ts">
- {% if msg.FriendsOnly %}
+ {% if msg.friendsOnly %}
<i data-icon="ei-lock" data-size="s"></i> &middot;
{% endif %}
<a href="/{{ msg.user.name }}/{{ msg.mid }}">
@@ -43,7 +43,7 @@
{% if visitor.uid == msg.user.uid and (msg.user.premium or beans.userServiceImpl.isAdminUser(msg.user)) %}
<a href="/{{ msg.mid }}" class="a-privacy msg-button">
<span class="msg-button-icon">
- {% if msg.FriendsOnly %}
+ {% if msg.friendsOnly %}
<i data-icon="ei-unlock" data-size="s"></i>
<span>&nbsp;{{ i18n("messages","message.unlock") }}</span>
{% else %}