mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-25 02:09:05 +01:00
[mastodon-client] Only return pinned attribute for own posts
This commit is contained in:
parent
d4cca752ac
commit
1a03044be8
@ -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({
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user