forked from friendica/friendica-addons
Compare commits
No commits in common. "454e9834bfd2a2b3fa5cd0ebb34e69ef1bc22919" and "cd95ca1a0a0a77abcbf6b6be39bf8d6ae490630c" have entirely different histories.
454e9834bf
...
cd95ca1a0a
6 changed files with 15 additions and 26 deletions
|
@ -4,9 +4,6 @@ pipeline:
|
||||||
clone_friendica_base:
|
clone_friendica_base:
|
||||||
image: alpine/git
|
image: alpine/git
|
||||||
commands:
|
commands:
|
||||||
- git config --global user.email "no-reply@friendi.ca"
|
|
||||||
- git config --global user.name "Friendica"
|
|
||||||
- git config --global --add safe.directory $CI_WORKSPACE
|
|
||||||
- git clone https://github.com/friendica/friendica.git .
|
- git clone https://github.com/friendica/friendica.git .
|
||||||
- git checkout $CI_COMMIT_BRANCH
|
- git checkout $CI_COMMIT_BRANCH
|
||||||
when:
|
when:
|
||||||
|
|
|
@ -9,9 +9,6 @@ pipeline:
|
||||||
clone_friendica_base:
|
clone_friendica_base:
|
||||||
image: alpine/git
|
image: alpine/git
|
||||||
commands:
|
commands:
|
||||||
- git config --global user.email "no-reply@friendi.ca"
|
|
||||||
- git config --global user.name "Friendica"
|
|
||||||
- git config --global --add safe.directory $CI_WORKSPACE
|
|
||||||
- git clone https://github.com/friendica/friendica.git .
|
- git clone https://github.com/friendica/friendica.git .
|
||||||
- git checkout $CI_COMMIT_BRANCH
|
- git checkout $CI_COMMIT_BRANCH
|
||||||
when:
|
when:
|
||||||
|
|
|
@ -4,9 +4,6 @@ pipeline:
|
||||||
clone_friendica_base:
|
clone_friendica_base:
|
||||||
image: alpine/git
|
image: alpine/git
|
||||||
commands:
|
commands:
|
||||||
- git config --global user.email "no-reply@friendi.ca"
|
|
||||||
- git config --global user.name "Friendica"
|
|
||||||
- git config --global --add safe.directory $CI_WORKSPACE
|
|
||||||
- git clone https://github.com/friendica/friendica.git .
|
- git clone https://github.com/friendica/friendica.git .
|
||||||
- git checkout $CI_COMMIT_BRANCH
|
- git checkout $CI_COMMIT_BRANCH
|
||||||
when:
|
when:
|
||||||
|
|
|
@ -21,9 +21,6 @@ pipeline:
|
||||||
clone_friendica_base:
|
clone_friendica_base:
|
||||||
image: alpine/git
|
image: alpine/git
|
||||||
commands:
|
commands:
|
||||||
- git config --global user.email "no-reply@friendi.ca"
|
|
||||||
- git config --global user.name "Friendica"
|
|
||||||
- git config --global --add safe.directory $CI_WORKSPACE
|
|
||||||
- git clone https://github.com/friendica/friendica.git .
|
- git clone https://github.com/friendica/friendica.git .
|
||||||
- git checkout $CI_COMMIT_BRANCH
|
- git checkout $CI_COMMIT_BRANCH
|
||||||
clone_friendica_addon:
|
clone_friendica_addon:
|
||||||
|
|
|
@ -9,9 +9,6 @@ pipeline:
|
||||||
clone_friendica_base:
|
clone_friendica_base:
|
||||||
image: alpine/git
|
image: alpine/git
|
||||||
commands:
|
commands:
|
||||||
- git config --global user.email "no-reply@friendi.ca"
|
|
||||||
- git config --global user.name "Friendica"
|
|
||||||
- git config --global --add safe.directory $CI_WORKSPACE
|
|
||||||
- git clone https://github.com/friendica/friendica.git .
|
- git clone https://github.com/friendica/friendica.git .
|
||||||
- git checkout $CI_COMMIT_BRANCH
|
- git checkout $CI_COMMIT_BRANCH
|
||||||
when:
|
when:
|
||||||
|
|
|
@ -1793,19 +1793,23 @@ function bluesky_get_did(string $handle): string
|
||||||
$handle .= '.' . BLUESKY_HOSTNAME;
|
$handle .= '.' . BLUESKY_HOSTNAME;
|
||||||
}
|
}
|
||||||
|
|
||||||
$data = bluesky_get(BLUESKY_PDS . '/xrpc/com.atproto.identity.resolveHandle?handle=' . urlencode($handle));
|
// Deactivated at the moment, since it isn't reliable by now
|
||||||
if (!empty($data) && !empty($data->did)) {
|
//$did = bluesky_get_did_by_dns($handle);
|
||||||
Logger::debug('Got DID by PDS call', ['handle' => $handle, 'did' => $data->did]);
|
//if ($did != '') {
|
||||||
return $data->did;
|
// return $did;
|
||||||
}
|
//}
|
||||||
|
|
||||||
// Possibly a custom PDS.
|
//$did = bluesky_get_did_by_wellknown($handle);
|
||||||
$did = bluesky_get_did_by_dns($handle);
|
//if ($did != '') {
|
||||||
if ($did != '') {
|
// return $did;
|
||||||
return $did;
|
//}
|
||||||
|
|
||||||
|
$data = bluesky_get(BLUESKY_PDS . '/xrpc/com.atproto.identity.resolveHandle?handle=' . urlencode($handle));
|
||||||
|
if (empty($data) || empty($data->did)) {
|
||||||
|
return '';
|
||||||
}
|
}
|
||||||
|
Logger::debug('Got DID by PDS call', ['handle' => $handle, 'did' => $data->did]);
|
||||||
return bluesky_get_did_by_wellknown($handle);
|
return $data->did;
|
||||||
}
|
}
|
||||||
|
|
||||||
function bluesky_get_user_did(int $uid, bool $refresh = false): ?string
|
function bluesky_get_user_did(int $uid, bool $refresh = false): ?string
|
||||||
|
|
Loading…
Reference in a new issue