API: added positiv list for quote support

This commit is contained in:
Michael 2023-01-25 06:26:17 +00:00
parent a86fbe37c9
commit 49d513f8d2
23 changed files with 114 additions and 55 deletions

View file

@ -180,6 +180,17 @@ class BaseApi extends BaseModule
}
}
/**
* Check if the app is known to support quoted posts
*
* @return bool
*/
public static function appSupportsQuotes(): bool
{
$token = self::getCurrentApplication();
return (!empty($token['name']) && in_array($token['name'], ['Fedilab']));
}
/**
* Get current application token
*