Less cluttered notification summary

This commit is contained in:
ThatOneCalculator 2022-07-28 09:24:43 -07:00
parent fccab12c82
commit 66813e2975
2 changed files with 7 additions and 1 deletions

View File

@ -21,7 +21,6 @@
## Work in progress
- Less cluttered notification summary
- Admin custom CSS
- Improve accesibility score
<details><summary>Current Misskey score is 57/100</summary>
@ -42,6 +41,7 @@
- [Profile background as banner](https://codeberg.org/Freeplay/Misskey-Tweaks/src/branch/main/snippets/profile-background.styl)
- Better timeline top bar
- Mark as read from notifications widget
- Less cluttered notification summary
- Better welcome screen (not logged in)
- Ability to turn off "Connection lost" message
- Raw instance info only for moderators

View File

@ -6,9 +6,11 @@ import { i18n } from '@/i18n';
* @param {*} note (packされた)稿
*/
export const getNoteSummary = (note: misskey.entities.Note): string => {
/*
if (note.deletedAt) {
return `(${i18n.ts.deletedNote})`;
}
*/
let summary = '';
@ -29,6 +31,8 @@ export const getNoteSummary = (note: misskey.entities.Note): string => {
summary += ` (${i18n.ts.poll})`;
}
/*
// 返信のとき
if (note.replyId) {
if (note.reply) {
@ -47,5 +51,7 @@ export const getNoteSummary = (note: misskey.entities.Note): string => {
}
}
*/
return summary.trim();
};