( ( $blogs[0] == 'site' ) || ( $blogs[0] == 'children' ) || ( $blogs[0] == 'siblings' ) ) { $mt = MT::get_instance(); $ctx = $mt->context(); $blog = $ctx->stash('blog'); if (!empty($blog) && $blog->class == 'blog') { require_once('class.mt_blog.php'); $blog_class = new Blog(); $blogs = $blog_class->Find("blog_parent_id = " . $blog->parent_id); $allow = array(); foreach($blogs as $b) { if ($b->id == $this_blog || (isset($access_overrides[$b->id]) && ($access_overrides[$b->id] == MULTIBLOG_ACCESS_ALLOWED))) array_push($allow, $b->id); } } return count($allow) ? array('include_blogs', $allow) : null; } # include_blogs="1,2,3,4" elseif ($is_include && count($blogs)) { # Filter @blogs returning only those with allow override $allow = array(); foreach ($blogs as $b) if ($b == $this_blog || (isset($access_overrides[$b]) && ($access_overrides[$b] == MULTIBLOG_ACCESS_ALLOWED))) $allow[] = $b; return count($allow) ? array('include_blogs', $allow) : null; } # exclude_blogs="1,2,3,4" else { # Get allow override blogs and then omit # the specified excluded blogs. $allow = array(); foreach (array_keys($access_overrides) as $o) if (($o == $this_blog) || (isset($access_overrides[$o]) && ($access_overrides[$o] == MULTIBLOG_ACCESS_ALLOWED))) $allow[] = $o; if (!isset($access_overrides[$this_blog])) $allow[] = $this_blog; $seen = array(); foreach ($blogs as $b) $seen[$b] = 1; $blogs = array(); foreach ($allow as $a) if (!isset($seen[$a])) $blogs[] = $a; return count($blogs) ? array('include_blogs', $blogs) : null; } } } ?> My Twitter Follow Policy | Aaron Bailey

My Twitter Follow Policy

My three-year anniversary on Twitter is nearing. In the beginning, I would follow everyone who followed me. Then the hoards and spammers showed up and I now have a new simple rule for who I will follow:

Engage me in a conversation (even send a simple @aaronbailey hello!) and I'll likely follow you back.

Leave a comment

Close