mirror of
https://github.com/friendica/friendica
synced 2025-04-22 11:50:11 +00:00
Remove FollowRequest type and use mstdnAccount->createFromContactId instead
This commit is contained in:
parent
18bb181a78
commit
f40cd60e39
3 changed files with 4 additions and 71 deletions
|
@ -105,8 +105,10 @@ class FollowRequests extends BaseApi
|
|||
foreach ($introductions as $key => $introduction) {
|
||||
try {
|
||||
self::setBoundaries($introduction->id);
|
||||
$return[] = DI::mstdnFollowRequest()->createFromIntroduction($introduction);
|
||||
} catch (HTTPException\InternalServerErrorException $exception) {
|
||||
$return[] = DI::mstdnAccount()->createFromContactId($introduction->cid, $introduction->uid);
|
||||
} catch (HTTPException\InternalServerErrorException
|
||||
| HTTPException\NotFoundException
|
||||
| \ImagickException $exception) {
|
||||
DI::intro()->delete($introduction);
|
||||
unset($introductions[$key]);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue