feat: post metadata uses full @

Closes #9660
This commit is contained in:
ThatOneCalculator 2023-03-23 18:03:33 -07:00
parent 765d90b789
commit 434e2f24e9
No known key found for this signature in database
GPG Key ID: 8703CACD01000000
1 changed files with 1 additions and 1 deletions

View File

@ -2,7 +2,7 @@ extends ./base
block vars block vars
- const user = note.user; - const user = note.user;
- const title = privateMode ? instanceName : (user.name ? `${user.name} (@${user.username})` : `@${user.username}`); - const title = privateMode ? instanceName : (user.name ? `${user.name} (@${user.username}${user.host ? `@${user.host}` : ''})` : `@${user.username}`);
- const url = `${config.url}/notes/${note.id}`; - const url = `${config.url}/notes/${note.id}`;
- const isRenote = note.renote && note.text == null && note.fileIds.length == 0 && note.poll == null; - const isRenote = note.renote && note.text == null && note.fileIds.length == 0 && note.poll == null;
- const isImage = note.files.length !== 0 && note.files[0].type.startsWith('image'); - const isImage = note.files.length !== 0 && note.files[0].type.startsWith('image');