瀏覽代碼

Forgotten argument fix

master
Eugen Rochko 8 年之前
父節點
當前提交
784b9cca6a
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. +2
    -2
      app/services/process_interaction_service.rb

+ 2
- 2
app/services/process_interaction_service.rb 查看文件

@@ -28,7 +28,7 @@ class ProcessInteractionService
when :post when :post
add_post!(body, account) if mentions_account?(xml, target_account) add_post!(body, account) if mentions_account?(xml, target_account)
when :share when :share
add_post!(body, account) unless status.nil?
add_post!(body, account) unless status(xml).nil?
end end
end end
end end
@@ -59,7 +59,7 @@ class ProcessInteractionService
end end


def favourite!(xml, from_account) def favourite!(xml, from_account)
status.favourites.first_or_create!(account: from_account)
status(xml).favourites.first_or_create!(account: from_account)
end end


def add_post!(body, account) def add_post!(body, account)


Loading…
取消
儲存