removeme sort of works for a single channel - lots of loose ends to deal with but it's a start

This commit is contained in:
friendica
2013-11-12 18:27:36 -08:00
parent 061b438f97
commit b26989bb65
6 changed files with 64 additions and 38 deletions

View File

@@ -1632,8 +1632,10 @@ function profile_load(&$a, $nickname, $profile = '') {
if(! $r) {
$r = q("SELECT profile.uid AS profile_uid, profile.*, channel.* FROM profile
LEFT JOIN channel ON profile.uid = channel.channel_id
WHERE channel.channel_address = '%s' AND profile.is_default = 1 LIMIT 1",
dbesc($nickname)
WHERE channel.channel_address = '%s' and not ( channel_pageflags & %d )
AND profile.is_default = 1 LIMIT 1",
dbesc($nickname),
intval(PAGE_REMOVED)
);
}