Added check
This commit is contained in:
parent
2c5d50be33
commit
aa65e28fec
|
@ -31,6 +31,11 @@ if ($_REQUEST['pagename'] == '') {
|
||||||
die();
|
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']);
|
$did = selectFirst($connection, "SELECT `v` FROM `pconfig` WHERE `uid` = ? AND `cat` = ? AND `k` = ?", [$user['uid'], 'bluesky', 'did']);
|
||||||
if (empty($did['v'])) {
|
if (empty($did['v'])) {
|
||||||
notFound();
|
notFound();
|
||||||
|
|
Loading…
Reference in a new issue