forked from mirrors/misskey
@@ -429,6 +429,7 @@ export class NoteEntityService implements OnModuleInit {
|
||||
userId: channel.userId,
|
||||
} : undefined,
|
||||
mentions: note.mentions.length > 0 ? note.mentions : undefined,
|
||||
hasPoll: note.hasPoll || undefined,
|
||||
uri: note.uri ?? undefined,
|
||||
url: note.url ?? undefined,
|
||||
|
||||
|
||||
@@ -256,6 +256,10 @@ export const packedNoteSchema = {
|
||||
type: 'number',
|
||||
optional: true, nullable: false,
|
||||
},
|
||||
hasPoll: {
|
||||
type: 'boolean',
|
||||
optional: true, nullable: false,
|
||||
},
|
||||
|
||||
myReaction: {
|
||||
type: 'string',
|
||||
|
||||
@@ -27,6 +27,7 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||
:emojiUrls="note.emojis"
|
||||
/>
|
||||
</details>
|
||||
<MkA v-if="note.hasPoll && note.poll == null" :to="`/notes/${note.id}`">({{ i18n.ts.poll }})</MkA>
|
||||
<button v-if="isLong && collapsed" :class="$style.fade" class="_button" @click="collapsed = false">
|
||||
<span :class="$style.fadeLabel">{{ i18n.ts.showMore }}</span>
|
||||
</button>
|
||||
|
||||
@@ -4481,6 +4481,7 @@ export type components = {
|
||||
url?: string;
|
||||
reactionAndUserPairCache?: string[];
|
||||
clippedCount?: number;
|
||||
hasPoll?: boolean;
|
||||
myReaction?: string | null;
|
||||
};
|
||||
NoteReaction: {
|
||||
|
||||
Reference in New Issue
Block a user