mirror of
https://github.com/versia-pub/server.git
synced 2025-12-07 16:58:20 +01:00
fix(api): 🐛 Fix issues with quotes not being serialized to API properly
This commit is contained in:
parent
b37921d0a3
commit
a45a4b3652
|
|
@ -502,7 +502,8 @@ export class Note {
|
||||||
visibility: data.visibility as APIStatus["visibility"],
|
visibility: data.visibility as APIStatus["visibility"],
|
||||||
url: data.uri || this.getMastoURI(),
|
url: data.uri || this.getMastoURI(),
|
||||||
bookmarked: false,
|
bookmarked: false,
|
||||||
quote: !!data.quotingId,
|
// Set to null because this breaks Megalodon
|
||||||
|
quote: false,
|
||||||
// @ts-expect-error Pleroma extension
|
// @ts-expect-error Pleroma extension
|
||||||
quote_id: data.quotingId || undefined,
|
quote_id: data.quotingId || undefined,
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue