[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
? UserNotePinings.exist({ where: {userId: user.id, noteId: note.id } })
: false;
: undefined;
// noinspection ES6MissingAwait
return await awaitAll({

View file

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