Soapbox-Improvements
This commit is contained in:
parent
3d614a0fcd
commit
d1e3ea7b46
3 changed files with 18 additions and 15 deletions
|
@ -130,9 +130,10 @@ function dfrn_notify_post(&$a) {
|
|||
|
||||
|
||||
// If we are setup as a soapbox we aren't accepting input from this person
|
||||
|
||||
if($importer['page-flags'] == PAGE_SOAPBOX)
|
||||
xml_status(0);
|
||||
// This behaviour is deactivated since it really doesn't make sense to even disallow comments
|
||||
// The check if someone is a friend or simply a follower is done in a later place so it needn't to be done here
|
||||
//if($importer['page-flags'] == PAGE_SOAPBOX)
|
||||
// xml_status(0);
|
||||
|
||||
$rino = get_config('system','rino_encrypt');
|
||||
$rino = intval($rino);
|
||||
|
|
|
@ -14,10 +14,12 @@ function follow_content(&$a) {
|
|||
$uid = local_user();
|
||||
$url = notags(trim($_REQUEST['url']));
|
||||
|
||||
$r = q("SELECT `url` FROM `contact` WHERE `uid` = %d AND
|
||||
// There is a current issue. It seems as if you can't start following a Friendica that is following you
|
||||
// With Diaspora this works - but Friendica is special, it seems ...
|
||||
$r = q("SELECT `url` FROM `contact` WHERE `uid` = %d AND ((`rel` != %d) OR (`network` = '%s')) AND
|
||||
(`nurl` = '%s' OR `alias` = '%s' OR `alias` = '%s') AND
|
||||
`network` != '%s' LIMIT 1",
|
||||
intval(local_user()), dbesc(normalise_link($url)),
|
||||
intval(local_user()), dbesc(CONTACT_IS_FOLLOWER), dbesc(NETWORK_DFRN), dbesc(normalise_link($url)),
|
||||
dbesc(normalise_link($url)), dbesc($url), dbesc(NETWORK_STATUSNET));
|
||||
|
||||
if ($r) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue