Compare commits
No commits in common. "develop" and "develop" have entirely different histories.
6 changed files with 68 additions and 89 deletions
|
|
@ -5,11 +5,6 @@ labels:
|
|||
|
||||
skip_clone: true
|
||||
|
||||
matrix:
|
||||
include:
|
||||
- PHP_MAJOR_VERSION: 8.5
|
||||
PHP_VERSION: 8.5.5
|
||||
|
||||
steps:
|
||||
clone_friendica_base:
|
||||
image: alpine/git
|
||||
|
|
@ -53,7 +48,7 @@ steps:
|
|||
branch: [ develop, '*-rc' ]
|
||||
event: push
|
||||
composer_install:
|
||||
image: friendicaci/php${PHP_MAJOR_VERSION}:php${PHP_VERSION}
|
||||
image: friendicaci/php8.2:php8.2.28
|
||||
commands:
|
||||
- export COMPOSER_HOME=.composer
|
||||
- composer validate
|
||||
|
|
|
|||
|
|
@ -5,11 +5,6 @@ labels:
|
|||
|
||||
skip_clone: true
|
||||
|
||||
matrix:
|
||||
include:
|
||||
- PHP_MAJOR_VERSION: 8.5
|
||||
PHP_VERSION: 8.5.5
|
||||
|
||||
steps:
|
||||
clone_friendica_base:
|
||||
image: alpine/git
|
||||
|
|
@ -53,7 +48,7 @@ steps:
|
|||
branch: [ develop, '*-rc' ]
|
||||
event: push
|
||||
composer_install:
|
||||
image: friendicaci/php${PHP_MAJOR_VERSION}:php${PHP_VERSION}
|
||||
image: friendicaci/php8.2:php8.2.28
|
||||
commands:
|
||||
- export COMPOSER_HOME=.composer
|
||||
- composer validate
|
||||
|
|
|
|||
|
|
@ -5,15 +5,13 @@ matrix:
|
|||
- PHP_MAJOR_VERSION: 8.0
|
||||
PHP_VERSION: 8.0.30
|
||||
- PHP_MAJOR_VERSION: 8.1
|
||||
PHP_VERSION: 8.1.34
|
||||
PHP_VERSION: 8.1.31
|
||||
- PHP_MAJOR_VERSION: 8.2
|
||||
PHP_VERSION: 8.2.30
|
||||
PHP_VERSION: 8.2.28
|
||||
- PHP_MAJOR_VERSION: 8.3
|
||||
PHP_VERSION: 8.3.30
|
||||
PHP_VERSION: 8.3.17
|
||||
- PHP_MAJOR_VERSION: 8.4
|
||||
PHP_VERSION: 8.4.20
|
||||
- PHP_MAJOR_VERSION: 8.5
|
||||
PHP_VERSION: 8.5.5
|
||||
PHP_VERSION: 8.4.5
|
||||
|
||||
# This forces PHP Unit executions at the "opensocial" labeled location (because of much more power...)
|
||||
labels:
|
||||
|
|
|
|||
|
|
@ -5,11 +5,6 @@ labels:
|
|||
|
||||
skip_clone: true
|
||||
|
||||
matrix:
|
||||
include:
|
||||
- PHP_MAJOR_VERSION: 8.5
|
||||
PHP_VERSION: 8.5.5
|
||||
|
||||
steps:
|
||||
clone_friendica_base:
|
||||
image: alpine/git
|
||||
|
|
@ -50,7 +45,7 @@ steps:
|
|||
repo: friendica/friendica-addons
|
||||
event: tag
|
||||
composer_install:
|
||||
image: friendicaci/php${PHP_MAJOR_VERSION}:php${PHP_VERSION}
|
||||
image: friendicaci/php8.2:php8.2.28
|
||||
commands:
|
||||
- export COMPOSER_HOME=.composer
|
||||
- composer validate
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
/**
|
||||
* Name: AT Protocol Atmosphere Connector (Bluesky, Eurosky, Blacksky, ...)
|
||||
* Description: Post to the Atmosphere via the AT Protocol, import timelines and feeds
|
||||
* Name: AT Protocol Connector (Bluesky, Eurosky, Blacksky, ...)
|
||||
* Description: Post via AT Protocol, import timelines and feeds
|
||||
* Version: 1.1
|
||||
* Author: Michael Vogel <https://pirati.ca/profile/heluecht>
|
||||
*
|
||||
|
|
@ -234,7 +234,7 @@ function bluesky_addon_admin(string &$o)
|
|||
|
||||
$o = Renderer::replaceMacros($t, [
|
||||
'$submit' => DI::l10n()->t('Save Settings'),
|
||||
'$friendica_handles' => ['friendica_handles', DI::l10n()->t('Allow your users to use your hostname for their Atmosphere handles'), DI::config()->get('bluesky', 'friendica_handles'), DI::l10n()->t('Before enabling this option, you have to setup a wildcard domain configuration and you have to enable wildcard requests in your webserver configuration. On Apache this is done by adding "ServerAlias *.%s" to your HTTP configuration. You don\'t need to change the HTTPS configuration.', DI::baseUrl()->getHost())],
|
||||
'$friendica_handles' => ['friendica_handles', DI::l10n()->t('Allow your users to use your hostname for their AT Protocol handles'), DI::config()->get('bluesky', 'friendica_handles'), DI::l10n()->t('Before enabling this option, you have to setup a wildcard domain configuration and you have to enable wildcard requests in your webserver configuration. On Apache this is done by adding "ServerAlias *.%s" to your HTTP configuration. You don\'t need to change the HTTPS configuration.', DI::baseUrl()->getHost())],
|
||||
]);
|
||||
}
|
||||
|
||||
|
|
@ -266,7 +266,7 @@ function bluesky_settings(array &$data)
|
|||
if (DI::config()->get('bluesky', 'friendica_handles')) {
|
||||
$self = User::getById(DI::userSession()->getLocalUserId(), ['nickname']);
|
||||
$host_handle = $self['nickname'] . '.' . DI::baseUrl()->getHost();
|
||||
$friendica_handle = ['bluesky_friendica_handle', DI::l10n()->t('Allow to use %s as your Atmosphere handle.', $host_handle), $custom_handle, DI::l10n()->t('When enabled, you can use %s as your Atmosphere handle. After you enabled this option, please go to https://bsky.app/settings and select to change your handle. Select that you have got your own domain. Then enter %s and select "No DNS Panel". Then select "Verify Text File".', $host_handle, $host_handle)];
|
||||
$friendica_handle = ['bluesky_friendica_handle', DI::l10n()->t('Allow to use %s as your AT Protocol handle.', $host_handle), $custom_handle, DI::l10n()->t('When enabled, you can use %s as your AT Protocol handle. After you enabled this option, please go to https://bsky.app/settings and select to change your handle. Select that you have got your own domain. Then enter %s and select "No DNS Panel". Then select "Verify Text File".', $host_handle, $host_handle)];
|
||||
if ($custom_handle) {
|
||||
$handle = $host_handle;
|
||||
}
|
||||
|
|
@ -281,23 +281,23 @@ function bluesky_settings(array &$data)
|
|||
|
||||
$t = Renderer::getMarkupTemplate('connector_settings.tpl', 'addon/bluesky/');
|
||||
$html = Renderer::replaceMacros($t, [
|
||||
'$enable' => ['bluesky', DI::l10n()->t('Enable Atmosphere Addon'), $enabled],
|
||||
'$bydefault' => ['bluesky_bydefault', DI::l10n()->t('Post to the Atmosphere by default'), $def_enabled],
|
||||
'$enable' => ['bluesky', DI::l10n()->t('Enable AT Protocol Addon'), $enabled],
|
||||
'$bydefault' => ['bluesky_bydefault', DI::l10n()->t('Post via AT Protocol by default'), $def_enabled],
|
||||
'$import' => ['bluesky_import', DI::l10n()->t('Import the remote timeline'), $import],
|
||||
'$import_feeds' => ['bluesky_import_feeds', DI::l10n()->t('Import the pinned feeds'), $import_feeds, DI::l10n()->t('When activated, Posts will be imported from all the feeds that you pinned in your Atmosphere client.')],
|
||||
'$import_feeds' => ['bluesky_import_feeds', DI::l10n()->t('Import the pinned feeds'), $import_feeds, DI::l10n()->t('When activated, Posts will be imported from all the feeds that you pinned in AT Protocol.')],
|
||||
'$complete_threads' => ['bluesky_complete_threads', DI::l10n()->t('Complete the threads'), $complete_threads, DI::l10n()->t('When activated, the system fetches additional replies for the posts in the timeline. This leads to more complete threads.')],
|
||||
'$custom_handle' => $friendica_handle,
|
||||
'$pds' => ['bluesky_pds', DI::l10n()->t('Personal Data Server'), $pds, DI::l10n()->t('The personal data server (PDS) is the system that hosts your profile.'), '', 'readonly'],
|
||||
'$handle' => ['bluesky_handle', DI::l10n()->t('Atmosphere handle'), $handle, '', '', $custom_handle ? 'readonly' : ''],
|
||||
'$did' => ['bluesky_did', DI::l10n()->t('Atmosphere DID'), $did, DI::l10n()->t('This is the unique identifier. It will be fetched automatically, when the handle is entered.'), '', 'readonly'],
|
||||
'$password' => ['bluesky_password', DI::l10n()->t('Atmosphere app password'), '', DI::l10n()->t("Please don't add your real password here, but instead create a specific app password in the settings of your Atmosphere client.")],
|
||||
'$handle' => ['bluesky_handle', DI::l10n()->t('AT Protocol handle'), $handle, '', '', $custom_handle ? 'readonly' : ''],
|
||||
'$did' => ['bluesky_did', DI::l10n()->t('AT Protocol DID'), $did, DI::l10n()->t('This is the unique identifier. It will be fetched automatically, when the handle is entered.'), '', 'readonly'],
|
||||
'$password' => ['bluesky_password', DI::l10n()->t('AT Protocol app password'), '', DI::l10n()->t("Please don't add your real password here, but instead create a specific app password in the settings of your AT Protocol system.")],
|
||||
'$web' => ['bluesky_web', DI::l10n()->t('Web front end'), $web, DI::l10n()->t('Choose your preferred external web front end for displaying posts and profiles.'), $web_frontend, ''],
|
||||
'$status' => bluesky_get_status($handle, $did, $pds, $token),
|
||||
]);
|
||||
|
||||
$data = [
|
||||
'connector' => 'bluesky',
|
||||
'title' => DI::l10n()->t('Atmosphere (Bluesky, Eurosky, Blacksky, ...) Import/Export'),
|
||||
'title' => DI::l10n()->t('AT Protocol (Bluesky, Eurosky, Blacksky, ...) Import/Export'),
|
||||
'image' => 'images/500px-AT_Protocol_logo.png',
|
||||
'enabled' => $enabled,
|
||||
'html' => $html,
|
||||
|
|
@ -328,7 +328,7 @@ function bluesky_get_status(string $handle = null, string $did = null, string $p
|
|||
|
||||
switch ($status) {
|
||||
case ATProtocol::STATUS_TOKEN_OK:
|
||||
return DI::l10n()->t("You are authenticated to the Atmosphere PDS. For security reasons the password isn't stored.");
|
||||
return DI::l10n()->t("You are authenticated to the AT Protocol PDS. For security reasons the password isn't stored.");
|
||||
case ATProtocol::STATUS_SUCCESS:
|
||||
return DI::l10n()->t('The communication with the personal data server service (PDS) is established.');
|
||||
case ATProtocol::STATUS_API_FAIL;
|
||||
|
|
@ -408,7 +408,7 @@ function bluesky_jot_nets(array &$jotnets_fields)
|
|||
'type' => 'checkbox',
|
||||
'field' => [
|
||||
'bluesky_enable',
|
||||
DI::l10n()->t('Post via the Atmosphere'),
|
||||
DI::l10n()->t('Post via the AT Protocol'),
|
||||
DI::pConfig()->get(DI::userSession()->getLocalUserId(), 'bluesky', 'post_by_default')
|
||||
]
|
||||
];
|
||||
|
|
@ -514,9 +514,9 @@ function bluesky_hook_fork(array &$b)
|
|||
}
|
||||
|
||||
if (DI::pConfig()->get($post['uid'], 'bluesky', 'import')) {
|
||||
// Don't post if it isn't a reply to an Atmosphere post
|
||||
// Don't post if it isn't a reply to an AT Protocol post
|
||||
if (($post['gravity'] != Item::GRAVITY_PARENT) && !Post::exists(['id' => $post['parent'], 'network' => Protocol::ATPROTO])) {
|
||||
DI::logger()->notice('No Atmosphere parent found', ['item' => $post['id']]);
|
||||
DI::logger()->notice('No AT Protocol parent found', ['item' => $post['id']]);
|
||||
$b['execute'] = false;
|
||||
return;
|
||||
}
|
||||
|
|
@ -574,7 +574,7 @@ function bluesky_send(array &$b)
|
|||
if ($b['deleted']) {
|
||||
$uri = DI::atpProcessor()->getUriClass($b['uri']);
|
||||
if (empty($uri)) {
|
||||
DI::logger()->debug('Not an Atmosphere post', ['uri' => $b['uri']]);
|
||||
DI::logger()->debug('Not an AT Protocol post', ['uri' => $b['uri']]);
|
||||
return;
|
||||
}
|
||||
DI::atProtocol()->deleteRecord($b['uid'], $uri->uri);
|
||||
|
|
@ -585,7 +585,7 @@ function bluesky_send(array &$b)
|
|||
$parent = DI::atpProcessor()->getUriClass($b['thr-parent']);
|
||||
|
||||
if (empty($root) || empty($parent)) {
|
||||
DI::logger()->debug('No Atmosphere post', ['parent' => $b['parent'], 'thr-parent' => $b['thr-parent']]);
|
||||
DI::logger()->debug('No AT Protocol post', ['parent' => $b['parent'], 'thr-parent' => $b['thr-parent']]);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -1046,10 +1046,6 @@ function bluesky_fetch_notifications(int $uid)
|
|||
}
|
||||
|
||||
foreach ($data->notifications as $notification) {
|
||||
if (DI::contentItem()->isTooOld($notification->indexedAt)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$uri = DI::atpProcessor()->getUri($notification);
|
||||
if (Post::exists(['uri' => $uri, 'uid' => $uid]) || Post::exists(['extid' => $uri, 'uid' => $uid])) {
|
||||
DI::logger()->debug('Notification already processed', ['uid' => $uid, 'reason' => $notification->reason, 'uri' => $uri, 'indexedAt' => $notification->indexedAt]);
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ msgid ""
|
|||
msgstr ""
|
||||
"Project-Id-Version: \n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2026-04-25 10:10+0000\n"
|
||||
"POT-Creation-Date: 2026-03-18 13:20+0000\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
|
|
@ -17,126 +17,126 @@ msgstr ""
|
|||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
||||
#: bluesky.php:236
|
||||
#: bluesky.php:248
|
||||
msgid "Save Settings"
|
||||
msgstr ""
|
||||
|
||||
#: bluesky.php:237
|
||||
msgid "Allow your users to use your hostname for their Atmosphere handles"
|
||||
#: bluesky.php:249
|
||||
msgid "Allow your users to use your hostname for their AT Protocol handles"
|
||||
msgstr ""
|
||||
|
||||
#: bluesky.php:237
|
||||
#: bluesky.php:249
|
||||
#, php-format
|
||||
msgid "Before enabling this option, you have to setup a wildcard domain configuration and you have to enable wildcard requests in your webserver configuration. On Apache this is done by adding \"ServerAlias *.%s\" to your HTTP configuration. You don't need to change the HTTPS configuration."
|
||||
msgstr ""
|
||||
|
||||
#: bluesky.php:269
|
||||
#: bluesky.php:281
|
||||
#, php-format
|
||||
msgid "Allow to use %s as your Atmosphere handle."
|
||||
msgid "Allow to use %s as your AT Protocol handle."
|
||||
msgstr ""
|
||||
|
||||
#: bluesky.php:269
|
||||
#: bluesky.php:281
|
||||
#, php-format
|
||||
msgid "When enabled, you can use %s as your Atmosphere handle. After you enabled this option, please go to https://bsky.app/settings and select to change your handle. Select that you have got your own domain. Then enter %s and select \"No DNS Panel\". Then select \"Verify Text File\"."
|
||||
msgid "When enabled, you can use %s as your AT Protocol handle. After you enabled this option, please go to https://bsky.app/settings and select to change your handle. Select that you have got your own domain. Then enter %s and select \"No DNS Panel\". Then select \"Verify Text File\"."
|
||||
msgstr ""
|
||||
|
||||
#: bluesky.php:284
|
||||
msgid "Enable Atmosphere Addon"
|
||||
#: bluesky.php:298
|
||||
msgid "Enable AT Protocol Addon"
|
||||
msgstr ""
|
||||
|
||||
#: bluesky.php:285
|
||||
msgid "Post to the Atmosphere by default"
|
||||
msgstr ""
|
||||
|
||||
#: bluesky.php:286
|
||||
msgid "Import the remote timeline"
|
||||
msgstr ""
|
||||
|
||||
#: bluesky.php:287
|
||||
msgid "Import the pinned feeds"
|
||||
msgstr ""
|
||||
|
||||
#: bluesky.php:287
|
||||
msgid "When activated, Posts will be imported from all the feeds that you pinned in your Atmosphere client."
|
||||
msgstr ""
|
||||
|
||||
#: bluesky.php:288
|
||||
msgid "Complete the threads"
|
||||
msgstr ""
|
||||
|
||||
#: bluesky.php:288
|
||||
msgid "When activated, the system fetches additional replies for the posts in the timeline. This leads to more complete threads."
|
||||
msgstr ""
|
||||
|
||||
#: bluesky.php:290
|
||||
msgid "Personal Data Server"
|
||||
msgstr ""
|
||||
|
||||
#: bluesky.php:290
|
||||
msgid "The personal data server (PDS) is the system that hosts your profile."
|
||||
msgstr ""
|
||||
|
||||
#: bluesky.php:291
|
||||
msgid "Atmosphere handle"
|
||||
msgstr ""
|
||||
|
||||
#: bluesky.php:292
|
||||
msgid "Atmosphere DID"
|
||||
msgstr ""
|
||||
|
||||
#: bluesky.php:292
|
||||
msgid "This is the unique identifier. It will be fetched automatically, when the handle is entered."
|
||||
msgstr ""
|
||||
|
||||
#: bluesky.php:293
|
||||
msgid "Atmosphere app password"
|
||||
msgstr ""
|
||||
|
||||
#: bluesky.php:293
|
||||
msgid "Please don't add your real password here, but instead create a specific app password in the settings of your Atmosphere client."
|
||||
msgstr ""
|
||||
|
||||
#: bluesky.php:294
|
||||
msgid "Web front end"
|
||||
msgstr ""
|
||||
|
||||
#: bluesky.php:294
|
||||
msgid "Choose your preferred external web front end for displaying posts and profiles."
|
||||
#: bluesky.php:299
|
||||
msgid "Post via AT Protocol by default"
|
||||
msgstr ""
|
||||
|
||||
#: bluesky.php:300
|
||||
msgid "Atmosphere (Bluesky, Eurosky, Blacksky, ...) Import/Export"
|
||||
msgid "Import the remote timeline"
|
||||
msgstr ""
|
||||
|
||||
#: bluesky.php:310
|
||||
#: bluesky.php:301
|
||||
msgid "Import the pinned feeds"
|
||||
msgstr ""
|
||||
|
||||
#: bluesky.php:301
|
||||
msgid "When activated, Posts will be imported from all the feeds that you pinned in AT Protocol."
|
||||
msgstr ""
|
||||
|
||||
#: bluesky.php:302
|
||||
msgid "Complete the threads"
|
||||
msgstr ""
|
||||
|
||||
#: bluesky.php:302
|
||||
msgid "When activated, the system fetches additional replies for the posts in the timeline. This leads to more complete threads."
|
||||
msgstr ""
|
||||
|
||||
#: bluesky.php:304
|
||||
msgid "Personal Data Server"
|
||||
msgstr ""
|
||||
|
||||
#: bluesky.php:304
|
||||
msgid "The personal data server (PDS) is the system that hosts your profile."
|
||||
msgstr ""
|
||||
|
||||
#: bluesky.php:305
|
||||
msgid "AT Protocol handle"
|
||||
msgstr ""
|
||||
|
||||
#: bluesky.php:306
|
||||
msgid "AT Protocol DID"
|
||||
msgstr ""
|
||||
|
||||
#: bluesky.php:306
|
||||
msgid "This is the unique identifier. It will be fetched automatically, when the handle is entered."
|
||||
msgstr ""
|
||||
|
||||
#: bluesky.php:307
|
||||
msgid "AT Protocol app password"
|
||||
msgstr ""
|
||||
|
||||
#: bluesky.php:307
|
||||
msgid "Please don't add your real password here, but instead create a specific app password in the settings of your AT Protocol system."
|
||||
msgstr ""
|
||||
|
||||
#: bluesky.php:308
|
||||
msgid "Web front end"
|
||||
msgstr ""
|
||||
|
||||
#: bluesky.php:308
|
||||
msgid "Choose your preferred external web front end for displaying posts and profiles."
|
||||
msgstr ""
|
||||
|
||||
#: bluesky.php:314
|
||||
msgid "AT Protocol (Bluesky, Eurosky, Blacksky, ...) Import/Export"
|
||||
msgstr ""
|
||||
|
||||
#: bluesky.php:324
|
||||
msgid "You are not authenticated. Please enter your handle and the app password."
|
||||
msgstr ""
|
||||
|
||||
#: bluesky.php:331
|
||||
msgid "You are authenticated to the Atmosphere PDS. For security reasons the password isn't stored."
|
||||
#: bluesky.php:345
|
||||
msgid "You are authenticated to the AT Protocol PDS. For security reasons the password isn't stored."
|
||||
msgstr ""
|
||||
|
||||
#: bluesky.php:333
|
||||
#: bluesky.php:347
|
||||
msgid "The communication with the personal data server service (PDS) is established."
|
||||
msgstr ""
|
||||
|
||||
#: bluesky.php:335
|
||||
#: bluesky.php:349
|
||||
#, php-format
|
||||
msgid "Communication issues with the personal data server service (PDS): %s"
|
||||
msgstr ""
|
||||
|
||||
#: bluesky.php:337
|
||||
#: bluesky.php:351
|
||||
msgid "The DID for the provided handle could not be detected. Please check if you entered the correct handle."
|
||||
msgstr ""
|
||||
|
||||
#: bluesky.php:339
|
||||
#: bluesky.php:353
|
||||
msgid "The personal data server service (PDS) could not be detected."
|
||||
msgstr ""
|
||||
|
||||
#: bluesky.php:341
|
||||
#: bluesky.php:355
|
||||
msgid "The authentication with the provided handle and password failed. Please check if you entered the correct password."
|
||||
msgstr ""
|
||||
|
||||
#: bluesky.php:411
|
||||
msgid "Post via the Atmosphere"
|
||||
#: bluesky.php:425
|
||||
msgid "Post via the AT Protocol"
|
||||
msgstr ""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue