The code powering m.abunchtell.com https://m.abunchtell.com
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 

15 行
334 B

  1. # frozen_string_literal: true
  2. class UnfavouriteService < BaseService
  3. def call(account, status)
  4. favourite = Favourite.find_by!(account: account, status: status)
  5. favourite.destroy!
  6. unless status.local?
  7. NotificationWorker.perform_async(favourite.stream_entry.id, status.account_id)
  8. end
  9. favourite
  10. end
  11. end