mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-07-13 21:44:32 +08:00
关注列表/点赞列表/fork列表的后端
This commit is contained in:
@@ -13,7 +13,7 @@ module Watchable
|
||||
end
|
||||
|
||||
def watch!(watchable)
|
||||
watchable.watchers.create!(user: self)
|
||||
watchable.watchers.create!(user: self, created_at: Time.current)
|
||||
end
|
||||
|
||||
def unwatch!(watchable)
|
||||
|
||||
Reference in New Issue
Block a user