mirror of
https://github.com/friendica/friendica
synced 2025-04-19 13:10:10 +00:00
API: added positiv list for quote support
This commit is contained in:
parent
a86fbe37c9
commit
49d513f8d2
23 changed files with 114 additions and 55 deletions
|
@ -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
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue