mods/standard/sets/all/follow.rb in wagn-1.12.9 vs mods/standard/sets/all/follow.rb in wagn-1.12.10

- old
+ new

@@ -1,11 +1,11 @@ format :html do watch_perms = lambda { |r| Account.logged_in? && !r.card.new_card? } view :watch, :tags=>[:unknown_ok, :no_wrap_comments], :denial=>:blank, :perms=>watch_perms do |args| - wrap :watch, args do + wrap args do if card.watching_type? watching_type_cards else link_args = if card.watching? ["following", :off, "stop sending emails about changes to #{card.cardname}", { :hover_content=> 'unfollow' } ] @@ -36,10 +36,10 @@ @watcher_watched_pairs = watcher_watched_pairs end event :notify_followers, :after=>:extend do begin - return false if Card.record_timestamps==false || ENV['WAGN_MIGRATION'] + return false if Card.record_timestamps==false or Wagn.config.send_emails==false # userstamps and timestamps are turned off in cases like updating read_rules that are automated and # generally not of enough interest to warrant notification action = "#{@action}d"