[mastodon-client] Only return pinned attribute for own posts

This commit is contained in:
Laura Hausmann 2023-09-29 17:37:16 +02:00
parent d4cca752ac
commit 1a03044be8
No known key found for this signature in database
GPG Key ID: D044E84C5BE01605
2 changed files with 2 additions and 2 deletions

View File

@ -88,7 +88,7 @@ export class NoteConverter {
const isPinned = user && note.userId === user.id const isPinned = user && note.userId === user.id
? UserNotePinings.exist({ where: {userId: user.id, noteId: note.id } }) ? UserNotePinings.exist({ where: {userId: user.id, noteId: note.id } })
: false; : undefined;
// noinspection ES6MissingAwait // noinspection ES6MissingAwait
return await awaitAll({ return await awaitAll({

View File

@ -37,7 +37,7 @@ namespace MastodonEntity {
poll: Poll | null; poll: Poll | null;
application: Application | null; application: Application | null;
language: string | null; language: string | null;
pinned: boolean | null; pinned: boolean | undefined;
reactions: Array<Reaction>; reactions: Array<Reaction>;
quote: Status | null; quote: Status | null;
bookmarked: boolean; bookmarked: boolean;