mirror of
https://github.com/friendica/friendica
synced 2025-04-26 15:50:10 +00:00
Facebook and App.net is removed from nearly all places (#5581)
* Facebook is removed from nearly all places * Remove app.net as well - it's dead for some time now
This commit is contained in:
parent
e62c1c3f81
commit
8c2efa6df4
12 changed files with 12 additions and 41 deletions
|
@ -151,7 +151,7 @@ class GContact
|
|||
throw new Exception("This (".$gcontact['url'].") doesn't seem to be an url.");
|
||||
}
|
||||
|
||||
if (in_array($urlparts["host"], ["www.facebook.com", "facebook.com", "twitter.com", "identi.ca", "alpha.app.net"])) {
|
||||
if (in_array($urlparts["host"], ["twitter.com", "identi.ca"])) {
|
||||
throw new Exception('Contact from a non federated network ignored. ('.$gcontact['url'].')');
|
||||
}
|
||||
|
||||
|
|
|
@ -73,9 +73,6 @@ class ItemContent extends BaseObject
|
|||
case 7:
|
||||
$abstract = Text\BBCode::getAbstract($item['body'], NETWORK_STATUSNET);
|
||||
break;
|
||||
case 6:
|
||||
$abstract = Text\BBCode::getAbstract($item['body'], NETWORK_APPNET);
|
||||
break;
|
||||
default: // We don't know the exact target.
|
||||
// We fetch an abstract since there is a posting limit.
|
||||
if ($limit > 0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue