Only display notification filter bar when supported
Signed-off-by: Nicole Mikołajczyk <git@mkljczk.pl>
This commit is contained in:
@ -1067,6 +1067,11 @@ const getFeatures = (instance: Instance) => {
|
||||
v.software === PLEROMA,
|
||||
]),
|
||||
|
||||
/**
|
||||
* @see GET /api/v1/notifications
|
||||
*/
|
||||
notificationsExcludeTypes: v.software !== MITRA,
|
||||
|
||||
/**
|
||||
* @see GET /api/v1/notifications
|
||||
*/
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
/**
|
||||
* @category Request params
|
||||
*/
|
||||
interface CreateAccountParams {
|
||||
type CreateAccountParams = {
|
||||
/** String. The desired username for the account */
|
||||
username: string;
|
||||
/** String. The email address to be used for login */
|
||||
@ -31,7 +31,15 @@ interface CreateAccountParams {
|
||||
domain?: string;
|
||||
|
||||
accepts_email_list?: boolean;
|
||||
}
|
||||
|
||||
/** Invite code */
|
||||
invite_code?: string;
|
||||
} & ({
|
||||
/** EIP-4361 message */
|
||||
message: string;
|
||||
/** EIP-4361 signature (required if message is present) */
|
||||
signature: string;
|
||||
} | {})
|
||||
|
||||
/**
|
||||
* @category Request params
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "pl-api",
|
||||
"version": "1.0.0-rc.40",
|
||||
"version": "1.0.0-rc.41",
|
||||
"type": "module",
|
||||
"homepage": "https://github.com/mkljczk/pl-fe/tree/develop/packages/pl-api",
|
||||
"repository": {
|
||||
|
||||
Reference in New Issue
Block a user