From ea709361f6a27f3234afbaeb6d3d1759eeca2ee5 Mon Sep 17 00:00:00 2001 From: friendica Date: Mon, 17 Feb 2014 20:10:43 -0800 Subject: snakebite, cont. magic-auth via openid is now possible, with the caveat that one needs a hand-crafted xchan at the moment to make use of it and if you wish to do so, there will be no assistance or help provided. The risk of system instability and mangled DBs now and going forward is significant if you try this. --- include/identity.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/identity.php') diff --git a/include/identity.php b/include/identity.php index d0fffaede..05a228abf 100644 --- a/include/identity.php +++ b/include/identity.php @@ -1137,7 +1137,7 @@ function get_default_profile_photo($size = 175) { */ function is_foreigner($s) { - return((strpbrk($s,':@')) ? true : false); + return((strpbrk($s,'.:@')) ? true : false); } -- cgit v1.2.3 From 0b4aa5a39c6cef862b4fbcbc71771f4931a4bc68 Mon Sep 17 00:00:00 2001 From: friendica Date: Mon, 17 Feb 2014 20:38:30 -0800 Subject: get_theme_uid() - if no uid, look for a system channel and use that. This allows default theme/scheme tweaks at the server level. --- include/identity.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/identity.php') diff --git a/include/identity.php b/include/identity.php index 05a228abf..d83498a69 100644 --- a/include/identity.php +++ b/include/identity.php @@ -1104,6 +1104,11 @@ function get_theme_uid() { if(! $uid) return local_user(); } + if(! $uid) { + $x = get_sys_channel(); + if($x) + return $x['channel_id']; + } return $uid; } -- cgit v1.2.3