Issue #275: lists/memberships with filter_to_owned_lists does not return memberships of a protected users lists

When I call lists/memberships for a protected user with the filter_to_owned_lists parameter =true, I always get an empty list. I would expect that I should see my own lists.

When I call lists/members on "test list" (authenticated), I see both user lists/members.json?cursor=-1&list_id=67072775&owner_id=366813606:

  1. {
  2.     "next_cursor" = 0;
  3.     "next_cursor_str" = 0;
  4.     "previous_cursor" = 0;
  5.     "previous_cursor_str" = 0;
  6.     users =     (
  7.                 {
  8.             "contributors_enabled" = 1;
  9.             "created_at" = "Thu Jun 05 00:54:31 +0000 2008";
  10.             "default_profile" = 0;
  11.             "default_profile_image" = 0;
  12.             description = "The official twitter feed of CBS News. Follow us for original reporting and trusted news with content and perspective found nowhere else.";
  13.             "favourites_count" = 32;
  14.             "follow_request_sent" = "<null>";
  15.             "followers_count" = 1985116;
  16.             following = "<null>";
  17.             "friends_count" = 182;
  18.             "geo_enabled" = 0;
  19.             id = 15012486;
  20.             "id_str" = 15012486;
  21.             "is_translator" = 0;
  22.             lang = en;
  23.             "listed_count" = 24557;
  24.             location = "New York, NY";
  25.             name = "CBS News";
  26.             notifications = "<null>";
  27.             "profile_background_color" = 282727;
  28.             "profile_background_image_url" = "http://a0.twimg.com/profile_background_images/426546272/cbsnews_twitter_skin_1040x.jpeg";
  29.             "profile_background_image_url_https" = "https://si0.twimg.com/profile_background_images/426546272/cbsnews_twitter_skin_1040x.jpeg";
  30.             "profile_background_tile" = 0;
  31.             "profile_banner_url" = "https://si0.twimg.com/brand_banners/CBSNews/1329408962/live";
  32.             "profile_image_url" = "http://a0.twimg.com/profile_images/1213095644/CBS-eye-white-bg_normal.jpg";
  33.             "profile_image_url_https" = "https://si0.twimg.com/profile_images/1213095644/CBS-eye-white-bg_normal.jpg";
  34.             "profile_link_color" = e23413;
  35.             "profile_sidebar_border_color" = ffffff;
  36.             "profile_sidebar_fill_color" = eaedf0;
  37.             "profile_text_color" = 000000;
  38.             "profile_use_background_image" = 1;
  39.             protected = 0;
  40.             "screen_name" = CBSNews;
  41.             "show_all_inline_media" = 0;
  42.             status =             {
  43.                 contributors = "<null>";
  44.                 coordinates = "<null>";
  45.                 "created_at" = "Tue Mar 13 02:02:35 +0000 2012";
  46.                 favorited = 0;
  47.                 geo = "<null>";
  48.                 id = 179386947674980352;
  49.                 "id_str" = 179386947674980352;
  50.                 "in_reply_to_screen_name" = "<null>";
  51.                 "in_reply_to_status_id" = "<null>";
  52.                 "in_reply_to_status_id_str" = "<null>";
  53.                 "in_reply_to_user_id" = "<null>";
  54.                 "in_reply_to_user_id_str" = "<null>";
  55.                 place = "<null>";
  56.                 "possibly_sensitive" = 0;
  57.                 "retweet_count" = 34;
  58.                 retweeted = 0;
  59.                 source = "<a href=\"http://www.hootsuite.com\" rel=\"nofollow\">HootSuite</a>";
  60.                 text = "A man attacked a mosque in Belgium near Brussels with Molotov cocktails; imam dies fighting flames - http://t.co/X4FRak8z";
  61.                 truncated = 0;
  62.             };
  63.             "statuses_count" = 28139;
  64.             "time_zone" = "Eastern Time (US & Canada)";
  65.             url = "http://cbsnews.com";
  66.             "utc_offset" = "-18000";
  67.             verified = 1;
  68.         },
  69.                 {
  70.             "contributors_enabled" = 0;
  71.             "created_at" = "Sat Dec 10 03:11:45 +0000 2011";
  72.             "default_profile" = 1;
  73.             "default_profile_image" = 0;
  74.             description = "";
  75.             "favourites_count" = 0;
  76.             "follow_request_sent" = 0;
  77.             "followers_count" = 1;
  78.             following = 1;
  79.             "friends_count" = 7;
  80.             "geo_enabled" = 0;
  81.             id = 433063777;
  82.             "id_str" = 433063777;
  83.             "is_translator" = 0;
  84.             lang = en;
  85.             "listed_count" = 0;
  86.             location = "";
  87.             name = "twst_dev";
  88.             notifications = 0;
  89.             "profile_background_color" = C0DEED;
  90.             "profile_background_image_url" = "http://a0.twimg.com/images/themes/theme1/bg.png";
  91.             "profile_background_image_url_https" = "https://si0.twimg.com/images/themes/theme1/bg.png";
  92.             "profile_background_tile" = 0;
  93.             "profile_image_url" = "http://a0.twimg.com/profile_images/1887883467/image_normal.jpg";
  94.             "profile_image_url_https" = "https://si0.twimg.com/profile_images/1887883467/image_normal.jpg";
  95.             "profile_link_color" = 0084B4;
  96.             "profile_sidebar_border_color" = C0DEED;
  97.             "profile_sidebar_fill_color" = DDEEF6;
  98.             "profile_text_color" = 333333;
  99.             "profile_use_background_image" = 1;
  100.             protected = 1;
  101.             "screen_name" = "twst_dev";
  102.             "show_all_inline_media" = 0;
  103.             "statuses_count" = 0;
  104.             "time_zone" = Alaska;
  105.             url = "<null>";
  106.             "utc_offset" = "-32400";
  107.             verified = 0;
  108.         }
  109.     );
  110. }

...when I get lists memberships to my lists for @cbs (authenticated), I get my list back lists/memberships.json?user_id=15012486&filter_to_owned_lists=true

  1. {
  2.     lists =     (
  3.                 {
  4.             "created_at" = "Tue Mar 13 03:42:35 +0000 2012";
  5.             description = "";
  6.             following = 0;
  7.             "full_name" = "@4sqff_test/test-list";
  8.             id = 67072775;
  9.             "id_str" = 67072775;
  10.             "member_count" = 2;
  11.             mode = private;
  12.             name = "test list";
  13.             slug = "test-list";
  14.             "subscriber_count" = 0;
  15.             uri = "/4sqff_test/test-list";
  16.             user =             {
  17.                 "contributors_enabled" = 0;
  18.                 "created_at" = "Fri Sep 02 21:39:26 +0000 2011";
  19.                 "default_profile" = 1;
  20.                 "default_profile_image" = 1;
  21.                 description = "";
  22.                 "favourites_count" = 0;
  23.                 "follow_request_sent" = 0;
  24.                 "followers_count" = 1;
  25.                 following = 0;
  26.                 "friends_count" = 1;
  27.                 "geo_enabled" = 0;
  28.                 id = 366813606;
  29.                 "id_str" = 366813606;
  30.                 "is_translator" = 0;
  31.                 lang = en;
  32.                 "listed_count" = 0;
  33.                 location = "";
  34.                 name = "4sqff Test";
  35.                 notifications = 0;
  36.                 "profile_background_color" = C0DEED;
  37.                 "profile_background_image_url" = "http://a0.twimg.com/images/themes/theme1/bg.png";
  38.                 "profile_background_image_url_https" = "https://si0.twimg.com/images/themes/theme1/bg.png";
  39.                 "profile_background_tile" = 0;
  40.                 "profile_image_url" = "http://a0.twimg.com/sticky/default_profile_images/default_profile_5_normal.png";
  41.                 "profile_image_url_https" = "https://si0.twimg.com/sticky/default_profile_images/default_profile_5_normal.png";
  42.                 "profile_link_color" = 0084B4;
  43.                 "profile_sidebar_border_color" = C0DEED;
  44.                 "profile_sidebar_fill_color" = DDEEF6;
  45.                 "profile_text_color" = 333333;
  46.                 "profile_use_background_image" = 1;
  47.                 protected = 1;
  48.                 "screen_name" = "4sqff_test";
  49.                 "show_all_inline_media" = 0;
  50.                 "statuses_count" = 1465;
  51.                 "time_zone" = "Pacific Time (US & Canada)";
  52.                 url = "<null>";
  53.                 "utc_offset" = "-28800";
  54.                 verified = 0;
  55.             };
  56.         }
  57.     );
  58.     "next_cursor" = 0;
  59.     "next_cursor_str" = 0;
  60.     "previous_cursor" = 0;
  61.     "previous_cursor_str" = 0;
  62. }

...however, when I get lists memberships to my lists for @twst_dev (authenticated), I an empty array back lists/memberships.json?user_id=433063777&filter_to_owned_lists=true

  1. {
  2.     lists =     (
  3.     );
  4.     "next_cursor" = 0;
  5.     "next_cursor_str" = 0;
  6.     "previous_cursor" = 0;
  7.     "previous_cursor_str" = 0;
  8. }

Updates

  • Thanks for the report, I've filed this with the team.