Added check

This commit is contained in:
Michael 2024-02-28 03:02:14 +00:00
parent 2c5d50be33
commit aa65e28fec

View file

@ -31,6 +31,11 @@ if ($_REQUEST['pagename'] == '') {
die();
}
$enabled = selectFirst($connection, "SELECT `v` FROM `pconfig` WHERE `uid` = ? AND `cat` = ? AND `k` = ?", [$user['uid'], 'bluesky', 'friendica_handle']);
if (empty($enabled['v'])) {
notFound();
}
$did = selectFirst($connection, "SELECT `v` FROM `pconfig` WHERE `uid` = ? AND `cat` = ? AND `k` = ?", [$user['uid'], 'bluesky', 'did']);
if (empty($did['v'])) {
notFound();