kopia lustrzana https://github.com/nextcloud/social
fixing exception+database
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>pull/72/head
rodzic
4a0956b5ac
commit
aa52cd8ee2
|
@ -356,7 +356,7 @@
|
|||
<name>icon_id</name>
|
||||
<type>text</type>
|
||||
<length>127</length>
|
||||
<notnull>true</notnull>
|
||||
<notnull>false</notnull>
|
||||
</field>
|
||||
|
||||
<field>
|
||||
|
|
|
@ -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 */
|
||||
|
|
Ładowanie…
Reference in New Issue