mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-22 01:47:39 -07:00
[mastodon-client] Only return pinned attribute for own posts
This commit is contained in:
parent
d4cca752ac
commit
1a03044be8
2 changed files with 2 additions and 2 deletions
|
@ -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({
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue