afuna: Cat under a blanket. Text: "Cats are just little people with Fur and Fangs" (Default)
afuna ([personal profile] afuna) wrote in [site community profile] changelog2009-07-02 02:06 am

[dw-free] email posting to access filters doesn't work

[commit: http://hg.dwscoalition.org/dw-free/rev/cd17b371f2b9]

http://bugs.dwscoalition.org/show_bug.cgi?id=1185

Account for read/access split.

Patch by [personal profile] kareila.

Files modified:
  • cgi-bin/ljemailgateway.pl
--------------------------------------------------------------------------------
diff -r 5564d0c21ca2 -r cd17b371f2b9 cgi-bin/ljemailgateway.pl
--- a/cgi-bin/ljemailgateway.pl	Wed Jul 01 15:47:21 2009 +0000
+++ b/cgi-bin/ljemailgateway.pl	Thu Jul 02 02:05:46 2009 +0000
@@ -423,7 +423,7 @@ sub process {
         }
     } elsif ($lj_headers{security}) { # Assume a friendgroup if unknown security mode.
         # Get the mask for the requested friends group, or default to private.
-        my $group = LJ::get_friend_group($u, { 'name'=>$lj_headers{security} });
+        my $group = $u->trust_groups( 'name' => $lj_headers{security} );
         if ($group) {
             $amask = (1 << $group->{groupnum});
             $lj_headers{security} = 'usemask';
--------------------------------------------------------------------------------