Get rid of deprecation warning in def like_json().

While getting aquainted to the code in PostController
i've noticed that the queries in like_json() are considered
obsolete. This diff fixes the warning.