mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-13 13:37:31 -07:00
Less cluttered notification summary
This commit is contained in:
parent
898f7a7021
commit
6372357f81
2 changed files with 7 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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();
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue