$post['uri-id'] = -1;
$post['author-network'] = Protocol::DFRN;
$post['author-updated'] = '';
+ $post['author-alias'] = '';
$post['author-gsid'] = 0;
$post['author-uri-id'] = ItemURI::getIdByURI($post['author-link']);
$post['owner-updated'] = '';
'GNU Social' => 'gnu-social', 'gnusocial' => 'gnu-social', 'hubzilla' => 'hubzilla',
'mastodon' => 'mastodon', 'peertube' => 'peertube', 'pixelfed' => 'pixelfed',
'pleroma' => 'pleroma', 'red' => 'hubzilla', 'redmatrix' => 'hubzilla',
- 'socialhome' => 'social-home', 'wordpress' => 'wordpress', 'lemmy' => 'users'];
+ 'socialhome' => 'social-home', 'wordpress' => 'wordpress', 'lemmy' => 'users',
+ 'firefish' => 'fire', 'calckey' => 'calculator', 'kbin' => 'check'];
$search = array_keys($nets);
$replace = array_values($nets);
public static function unavailableNetworks(): array
{
// Always hide content from these networks
- $networks = [Protocol::PHANTOM, Protocol::FACEBOOK, Protocol::APPNET, Protocol::ZOT];
+ $networks = [Protocol::PHANTOM, Protocol::FACEBOOK, Protocol::APPNET, Protocol::TWITTER, Protocol::ZOT];
if (!Addon::isEnabled("discourse")) {
$networks[] = Protocol::DISCOURSE;
$networks[] = Protocol::PUMPIO;
}
- if (!Addon::isEnabled("twitter")) {
- $networks[] = Protocol::TWITTER;
- }
-
if (!Addon::isEnabled("tumblr")) {
$networks[] = Protocol::TUMBLR;
}
'outbound' => [],
];
- if (Addon::isEnabled('blogger')) {
- $services['outbound'][] = 'blogger';
+ if (Addon::isEnabled('bluesky')) {
+ $services['inbound'][] = 'bluesky';
+ $services['outbound'][] = 'bluesky';
}
if (Addon::isEnabled('dwpost')) {
$services['outbound'][] = 'dreamwidth';
if (Addon::isEnabled('libertree')) {
$services['outbound'][] = 'libertree';
}
- if (Addon::isEnabled('buffer')) {
- $services['outbound'][] = 'linkedin';
- }
if (Addon::isEnabled('ljpost')) {
$services['outbound'][] = 'livejournal';
}
- if (Addon::isEnabled('buffer')) {
- $services['outbound'][] = 'pinterest';
- }
- if (Addon::isEnabled('posterous')) {
- $services['outbound'][] = 'posterous';
- }
if (Addon::isEnabled('pumpio')) {
$services['inbound'][] = 'pumpio';
$services['outbound'][] = 'pumpio';
if (Addon::isEnabled('tumblr')) {
$services['outbound'][] = 'tumblr';
}
- if (Addon::isEnabled('twitter') || Addon::isEnabled('buffer')) {
+ if (Addon::isEnabled('twitter')) {
$services['outbound'][] = 'twitter';
}
if (Addon::isEnabled('wppost')) {
$nodeinfo['metadata']['services'] = $nodeinfo['services'];
- if (Addon::isEnabled('twitter')) {
- $nodeinfo['metadata']['services']['inbound'][] = 'twitter';
- }
-
$nodeinfo['metadata']['explicitContent'] = $this->config->get('system', 'explicit_content', false) == true;
$this->response->setType(ICanCreateResponses::TYPE_JSON);
$nodeinfo['protocols'][] = 'ostatus';
}
- if (Addon::isEnabled('twitter')) {
- $nodeinfo['services']['inbound'][] = 'twitter';
- }
-
$nodeinfo['services']['inbound'][] = 'atom1.0';
$nodeinfo['services']['inbound'][] = 'rss2.0';
$nodeinfo['services']['outbound'][] = 'atom1.0';
$nodeinfo['protocols'][] = 'ostatus';
}
- if (Addon::isEnabled('twitter')) {
- $nodeinfo['services']['inbound'][] = 'twitter';
- }
-
$nodeinfo['services']['inbound'][] = 'atom1.0';
$nodeinfo['services']['inbound'][] = 'rss2.0';
$nodeinfo['services']['outbound'][] = 'atom1.0';
/// @todo mark the "service" addons and load them dynamically here
$services = [
'appnet' => Addon::isEnabled('appnet'),
- 'buffer' => Addon::isEnabled('buffer'),
+ 'bluesky' => Addon::isEnabled('bluesky'),
'dreamwidth' => Addon::isEnabled('dreamwidth'),
'gnusocial' => Addon::isEnabled('gnusocial'),
'libertree' => Addon::isEnabled('libertree'),