プロジェクト

全般

プロフィール

バグ #1325 » 1325-for-unfavo.patch

cob odo, 2019-03-24 00:40

差分を表示:

core/mui/cairo_sub_parts_favorite.rb
34 34
              mp.subparts.find{ |sp| sp.class == Gdk::SubPartsFavorite }.add(user) end } }
35 35
      end
36 36

  
37
      onunfavorite do |service, user, message|
38
        Gdk::MiraclePainter.findbymessage_d(message).next{ |mps|
39
          mps.deach{ |mp|
40
            if not mp.destroyed?
41
              mp.subparts.find{ |sp| sp.class == Gdk::SubPartsFavorite }.delete(user) end } }
42
      end
43

  
37 44
      on_before_favorite do |service, user, message|
38 45
        Gdk::MiraclePainter.findbymessage_d(message).next{ |mps|
39 46
          mps.deach{ |mp|
core/plugin/gtk/gtk.rb
440 440
      Gdk::MiraclePainter.findbymessage(message).each{ |mp|
441 441
        mp.on_modify } end end
442 442

  
443
  on_unfavorite do |service, user, message|
444
    if(user.me?)
445
      Gdk::MiraclePainter.findbymessage(message).each{ |mp|
446
        mp.on_modify } end end
447

  
443 448
  on_konami_activate do
444 449
    Gtk.konami_load
445 450
  end
core/plugin/twitter/twitter.rb
209 209
             favorited?(twitter, tweet)
210 210
           }) do |twitter, tweet|
211 211
    (twitter/'favorites/destroy'.freeze).message(id: tweet.id).next{ |unfavorited_tweet|
212
      unfavorited_tweet.favorited_by.delete(twitter.user_obj)
212 213
      Plugin.call(:unfavorite, twitter, twitter.user_obj, unfavorited_tweet)
213 214
      unfavorited_tweet
214 215
    }
(2-2/2)