You can use the following method, if you don’t want to do everything with SQL like the Lithium importer does:
PostAction.act(user, post, PostActionType.types[:like])
You can use the following method, if you don’t want to do everything with SQL like the Lithium importer does:
PostAction.act(user, post, PostActionType.types[:like])