fix reporting modal

This commit is contained in:
Henry Jameson 2026-06-11 11:15:51 +03:00
commit a077938f73
7 changed files with 30 additions and 42 deletions

View file

@ -299,10 +299,12 @@ export const BUTTONS = [
label: 'user_card.report',
if: ({ loggedIn }) => loggedIn,
action({ status }) {
return useReportsStore().openUserReportingModal({
useReportsStore().openUserReportingModal({
userId: status.user.id,
statusIds: [status.id],
})
return Promise.resolve()
},
},
].map((button) => {