Fix: Usernotes no longer actually work.

This commit is contained in:
Ben Rog-Wilhelm 2022-11-11 16:13:55 -06:00 committed by Ben Rog-Wilhelm
parent 583f4131dc
commit 127aed8dd0
3 changed files with 12 additions and 6 deletions

View file

@ -217,15 +217,11 @@ a.visited,
.usernote-link {
color: var(--primary);
text-decoration: none;
text-decoration: underline;
background-color: transparent;
cursor: pointer;
}
.usernote-link:hover {
text-decoration: underline;
}
.modal__overlay {
position: fixed;
top: 0;

View file

@ -542,6 +542,16 @@ class User(Base):
return data
@lazy
def json_notes(self, v):
data = {'username': self.username,
'url': self.url,
'id': self.id,
'notes': [x.json() for x in self.notes]
}
return data
@property
@lazy
def json_raw(self):

View file

@ -189,7 +189,7 @@
<span
class="usernote-link"
data-micromodal-trigger="modal-1"
onclick='fillnote( {{p.author.json_popover(v) | tojson}}, {{p.id}}, null )'>_U_</span>
onclick='fillnote( {{p.author.json_notes(v) | tojson}}, {{p.id}}, null )'>U</span>
{% endif %}
{% endif %}