의 미러
https://github.com/friendica/friendica
synced 2025-09-07 21:21:52 +02:00
Quit if follow failes because of not configured addon
This commit is contained in:
부모
c0b8685343
커밋
ae362f01d5
1개의 변경된 파일과 5개의 추가작업 그리고 0개의 파일을 삭제
|
@ -1151,6 +1151,11 @@ class Contact extends BaseObject
|
|||
|
||||
Addon::callHooks('follow', $arr);
|
||||
|
||||
if (empty($arr)) {
|
||||
$result['message'] = L10n::t('Contact cannot be added.');
|
||||
return $result;
|
||||
}
|
||||
|
||||
if (x($arr['contact'], 'name')) {
|
||||
$ret = $arr['contact'];
|
||||
} else {
|
||||
|
|
불러오는 중…
테이블 추가
Add a link
Reference in a new issue