kopia lustrzana https://github.com/nextcloud/social
small fixes
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>pull/462/head
rodzic
3352e75a07
commit
9038dc4fb4
|
@ -101,7 +101,7 @@ class DocumentInterface implements IActivityPubInterface {
|
|||
*/
|
||||
public function save(ACore $item) {
|
||||
/** @var Document $item */
|
||||
if ($item->getParent()) {
|
||||
if (!$item->isRoot()) {
|
||||
$item->setParentId(
|
||||
$item->getParent()
|
||||
->getId()
|
||||
|
|
|
@ -103,7 +103,7 @@ class CurlService {
|
|||
|
||||
// we consider an account is like an email
|
||||
if (!filter_var($account, FILTER_VALIDATE_EMAIL)) {
|
||||
throw new InvalidResourceException();
|
||||
throw new InvalidResourceException('account format is not valid');
|
||||
}
|
||||
|
||||
list($username, $host) = explode('@', $account);
|
||||
|
|
Ładowanie…
Reference in New Issue