fixing exception+database

Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
pull/72/head
Maxence Lange 2018-11-28 21:36:34 -01:00 zatwierdzone przez Julius Härtl
rodzic 4a0956b5ac
commit aa52cd8ee2
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4C614C6ED2CDE6DF
2 zmienionych plików z 5 dodań i 9 usunięć

Wyświetl plik

@ -356,7 +356,7 @@
<name>icon_id</name>
<type>text</type>
<length>127</length>
<notnull>true</notnull>
<notnull>false</notnull>
</field>
<field>

Wyświetl plik

@ -106,12 +106,9 @@ class PersonService implements ICoreService {
$this->cacheActorsRequest->deleteFromId($actor->getId());
}
try {
$actor->setLocal(true);
$actor->setSource(json_encode($actor, JSON_UNESCAPED_SLASHES));
$this->parse($actor);
} catch (Exception $e) {
}
$actor->setLocal(true);
$actor->setSource(json_encode($actor, JSON_UNESCAPED_SLASHES));
$this->parse($actor);
}
@ -167,6 +164,7 @@ class PersonService implements ICoreService {
* @throws CacheActorDoesNotExistException
* @throws SocialAppConfigException
* @throws UrlCloudException
* @throws Request410Exception
*/
public function getFromAccount(string $account, bool $retrieve = true): Person {
@ -239,8 +237,6 @@ class PersonService implements ICoreService {
* This method is called when saving the Follow object
*
* @param ACore $person
*
* @throws Exception
*/
public function parse(ACore $person) {
/** @var Person $person */