refactor!: rename note model field and fix exposure of hidden data
Signed-off-by: Innei <i@innei.in>
This commit is contained in:
@@ -8,12 +8,11 @@ import type {
|
||||
NoteWrappedPayload,
|
||||
NoteWrappedWithLikedPayload,
|
||||
} from '~/models/note'
|
||||
import type { HTTPClient } from '../core/client'
|
||||
import type { SortOptions } from './base'
|
||||
|
||||
import { autoBind } from '~/utils/auto-bind'
|
||||
|
||||
import { HTTPClient } from '../core/client'
|
||||
|
||||
declare module '../core/client' {
|
||||
interface HTTPClient<
|
||||
T extends IRequestAdapter = IRequestAdapter,
|
||||
|
||||
@@ -60,7 +60,7 @@ export interface TimelineData {
|
||||
| 'mood'
|
||||
| 'created'
|
||||
| 'modified'
|
||||
| 'hasMemory'
|
||||
| 'bookmark'
|
||||
>[]
|
||||
|
||||
posts?: (Pick<
|
||||
|
||||
@@ -10,9 +10,9 @@ export interface NoteModel extends TextBaseModel {
|
||||
|
||||
mood?: string
|
||||
weather?: string
|
||||
hasMemory?: boolean
|
||||
bookmark?: boolean
|
||||
|
||||
secret?: Date
|
||||
publicAt?: Date
|
||||
password?: string | null
|
||||
nid: number
|
||||
music?: NoteMusicRecord[]
|
||||
|
||||
Reference in New Issue
Block a user