最適化 #621 » list.patch
core/plugin/list/list.rb | ||
---|---|---|
timeline slug end
|
||
list_modify_member(list, true)
|
||
visible_list_obj = at(:visible_list_obj, {}).melt
|
||
if not defined? visible_list_obj[list[:id]]
|
||
if not visible_list_obj.has_key?(list[:id])
|
||
visible_list_obj[list[:id]] = list.to_hash
|
||
visible_list_obj[list[:id]][:user] = list[:user].to_hash
|
||
visible_list_obj[list[:id]].delete(:member)
|
||
... | ... | |
->(visible_lists) {
|
||
visible_list_ids.each{ |list_id|
|
||
begin
|
||
if defined? visible_lists[list_id]
|
||
if visible_lists.has_key?(list_id)
|
||
list = visible_lists[list_id].melt
|
||
list[:user] = User.new_ifnecessary(list[:user])
|
||
list[:member] = Set.new
|