mirror of
https://github.com/discourse/discourse.git
synced 2025-09-05 08:59:27 +08:00
FEATURE: New 'Reviewable' model to make reviewable items generic
Includes support for flags, reviewable users and queued posts, with REST API backwards compatibility. Co-Authored-By: romanrizzi <romanalejandro@gmail.com> Co-Authored-By: jjaffeux <j.jaffeux@gmail.com>
This commit is contained in:
parent
9a56b398a1
commit
b58867b6e9
354 changed files with 8090 additions and 5225 deletions
|
@ -410,11 +410,7 @@ class ImportScripts::NodeBB < ImportScripts::Base
|
|||
post["upvoted_by"].each do |upvoter_id|
|
||||
user = User.new
|
||||
user.id = user_id_from_imported_user_id(upvoter_id) || Discourse::SYSTEM_USER_ID
|
||||
|
||||
begin
|
||||
PostAction.act(user, p, PostActionType.types[:like])
|
||||
rescue PostAction::AlreadyActed
|
||||
end
|
||||
PostActionCreator.like(user, p)
|
||||
end
|
||||
end
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue