Newer
Older
include Rails.application.routes.url_helpers
def default_url_options
{:host => AppConfig.pod_uri.host}
alias_method :share_with_original, :share_with
def share_with(*args)
share_with_original(*args)
aspects = self.aspects_from_ids(opts[:to])
p.aspects = aspects
Raphael Sofaer
a validé
add_to_streams(p, aspects)
dispatch_opts = {:url => post_url(p), :to => opts[:to]}
dispatch_opts.merge!(:additional_subscribers => p.root.author) if class_name == :reshare
dispatch_post(p, dispatch_opts)
unless opts[:created_at]
p.created_at = Time.now - 1