Less cluttered notification summary

This commit is contained in:
ThatOneCalculator 2022-07-28 09:24:43 -07:00
parent 898f7a7021
commit 6372357f81
2 changed files with 7 additions and 1 deletions

View File

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

View File

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