mirror of
https://github.com/discourse/discourse.git
synced 2025-05-24 01:21:23 +08:00
FEATURE: remove star concept from Discourse
This commit is contained in:
@ -166,14 +166,6 @@ class TopicsController < ApplicationController
|
||||
render nothing: true
|
||||
end
|
||||
|
||||
def star
|
||||
@topic = Topic.find_by(id: params[:topic_id].to_i)
|
||||
guardian.ensure_can_see!(@topic)
|
||||
|
||||
@topic.toggle_star(current_user, params[:starred] == 'true')
|
||||
render nothing: true
|
||||
end
|
||||
|
||||
def mute
|
||||
toggle_mute
|
||||
end
|
||||
|
Reference in New Issue
Block a user