fix following internal account

Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
enh/noid/statuses-creation
Maxence Lange 2022-11-05 12:21:40 -01:00
rodzic 025917e459
commit 4c0330e99b
2 zmienionych plików z 5 dodań i 1 usunięć

Wyświetl plik

@ -138,6 +138,11 @@ class FollowService {
$follow->setObjectId($remoteActor->getId());
$follow->setFollowId($remoteActor->getFollowers());
if ($remoteActor->isLocal()) {
// TODO: check user's setting about locked account/auto-accept followers
$follow->setAccepted(true);
}
try {
$this->followsRequest->getByPersons($actor->getId(), $remoteActor->getId());
} catch (FollowNotFoundException $e) {

Wyświetl plik

@ -129,7 +129,6 @@ class PostService {
*/
private function generateDocumentsFromAttachments(Note $note, Post $post) {
$documents = [];
\OC::$server->getLogger()->error(var_export($_FILES["attachments"], true));
if (!isset($_FILES['attachments'])) {
return [];
}