Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
feature/573/request-on-host-meta
Maxence Lange 2019-04-19 22:12:12 -01:00
rodzic 3352e75a07
commit 9038dc4fb4
2 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -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()

Wyświetl plik

@ -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);