Less cluttered notification summary
This commit is contained in:
parent
fccab12c82
commit
66813e2975
@ -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
|
||||||
|
@ -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();
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user