プロジェクト

全般

プロフィール

バグ #1226 » multi_quote.patch

cob odo, 2018-05-05 17:20

差分を表示:

core/mui/cairo_sub_parts_quote.rb
30 30
      note.reference&.uri || note.uri
31 31
    }.select{ |u|
32 32
      u.is_a?(Diva::URI)
33
    }.map{ |target_uri|
34
      model_class = Enumerator.new{ |y|
33
    }.flat_map{ |target_uri|
34
      model_classes = Enumerator.new{ |y|
35 35
        Plugin.filtering(:model_of_uri, target_uri, y)
36
      }.lazy.map{ |model_slug|
36
      }.map{ |model_slug|
37 37
        Diva::Model(model_slug)
38
      }.find{ |mc|
38
      }.select{ |mc|
39 39
        mc.spec.timeline
40 40
      }
41
      Delayer.Deferred.new{ model_class.find_by_uri(target_uri) } if model_class
41
      if model_classes
42
        model_classes.map {|model_class|
43
          Delayer.Deferred.new{ model_class.find_by_uri(target_uri) }
44
        }
45
      end
42 46
    }.compact
43 47
    if !promise_list.empty?
44 48
      Delayer::Deferred.when(promise_list).next{ |quoting|
    (1-1/1)