@ -85,7 +85,7 @@ const importEntities = (entities: {
|
||||
processAccount(status.account);
|
||||
}
|
||||
|
||||
if (status.quote) processStatus(status.quote);
|
||||
if (status.quote && 'quoted_status' in status.quote && status.quote.quoted_status) processStatus(status.quote.quoted_status);
|
||||
if (status.reblog) processStatus(status.reblog);
|
||||
if (status.poll) polls[status.poll.id] = status.poll;
|
||||
if (status.group) groups[status.group.id] = status.group;
|
||||
|
||||
@ -70,7 +70,7 @@ const normalizeNotification = (notification: BaseNotification | DeduplicatedNoti
|
||||
status_id: string;
|
||||
}
|
||||
| {
|
||||
type: 'status' | 'reblog' | 'favourite' | 'poll' | 'update' | 'event_reminder';
|
||||
type: 'status' | 'reblog' | 'favourite' | 'poll' | 'update' | 'event_reminder' | 'quote' | 'quoted_update';
|
||||
status_id: string;
|
||||
}
|
||||
| {
|
||||
|
||||
@ -58,7 +58,6 @@ const normalizeStatus = ({ account, accounts, reblog, poll, group, quote, ...sta
|
||||
expectsCard: false,
|
||||
showFiltered: null as null | boolean,
|
||||
...status,
|
||||
quote_id: quote?.id || status.quote_id || null,
|
||||
mentions,
|
||||
filtered: status.filtered?.map(result => result.filter.title),
|
||||
event,
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "pl-hooks",
|
||||
"version": "0.0.13",
|
||||
"version": "0.0.14",
|
||||
"type": "module",
|
||||
"homepage": "https://codeberg.org/mkljczk/pl-fe/src/branch/develop/packages/pl-hooks",
|
||||
"repository": {
|
||||
@ -33,7 +33,7 @@
|
||||
"vite-plugin-dts": "^4.2.1"
|
||||
},
|
||||
"dependencies": {
|
||||
"@tanstack/react-query": "^5.59.16",
|
||||
"@tanstack/react-query": "^5.84.1",
|
||||
"lodash": "^4.17.21",
|
||||
"pl-api": "workspace:*",
|
||||
"react": "^18.3.1",
|
||||
|
||||
@ -26,5 +26,6 @@ export default defineConfig({
|
||||
alias: [
|
||||
{ find: 'pl-hooks', replacement: fileURLToPath(new URL('./lib', import.meta.url)) },
|
||||
],
|
||||
dedupe: ['valibot'],
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user