kopia lustrzana https://github.com/nextcloud/social
cleaning and fixing
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>pull/136/head
rodzic
5c6081f2cc
commit
1ec454ee3b
lib
|
@ -44,8 +44,6 @@ use OCA\Social\Service\CheckService;
|
|||
use OCA\Social\Service\ConfigService;
|
||||
use OCA\Social\Service\MiscService;
|
||||
use OCP\AppFramework\Controller;
|
||||
use OCP\AppFramework\Http;
|
||||
use OCP\AppFramework\Http\ContentSecurityPolicy;
|
||||
use OCP\AppFramework\Http\DataResponse;
|
||||
use OCP\AppFramework\Http\FileDisplayResponse;
|
||||
use OCP\AppFramework\Http\Response;
|
||||
|
@ -54,7 +52,6 @@ use OCP\IConfig;
|
|||
use OCP\IL10N;
|
||||
use OCP\IRequest;
|
||||
use OCP\IURLGenerator;
|
||||
use OCP\Http\Client\IClientService;
|
||||
|
||||
class NavigationController extends Controller {
|
||||
|
||||
|
|
|
@ -405,7 +405,9 @@ class CoreRequestBuilder {
|
|||
}
|
||||
|
||||
$qb->setMaxResults($limit);
|
||||
$qb->orderBy('creation', 'desc');
|
||||
|
||||
$pf = $this->defaultSelectAlias;
|
||||
$qb->orderBy($pf . '.creation', 'desc');
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -413,6 +413,16 @@ abstract class ACore extends Item implements JsonSerializable {
|
|||
|
||||
return $value;
|
||||
|
||||
case self::AS_USERNAME:
|
||||
$value = strip_tags($value);
|
||||
|
||||
return $value;
|
||||
|
||||
case self::AS_ACCOUNT:
|
||||
$value = strip_tags($value);
|
||||
|
||||
return $value;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -32,6 +32,7 @@ namespace OCA\Social\Model\ActivityPub;
|
|||
|
||||
|
||||
use JsonSerializable;
|
||||
use OCA\Social\Exceptions\InvalidResourceEntryException;
|
||||
use OCA\Social\Exceptions\UrlCloudException;
|
||||
|
||||
|
||||
|
@ -414,6 +415,7 @@ class Person extends ACore implements JsonSerializable {
|
|||
* @param array $data
|
||||
*
|
||||
* @throws UrlCloudException
|
||||
* @throws InvalidResourceEntryException
|
||||
*/
|
||||
public function import(array $data) {
|
||||
parent::import($data);
|
||||
|
|
Ładowanie…
Reference in New Issue