API: added positiv list for quote support
This commit is contained in:
@@ -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
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user