$(function(){$(document).on("click","[data-topic-follow-item] [data-action]",function(){const t=$(this),a=t.closest("[data-topic-follow-item]"),o=t.attr("data-action");var i=a.attr("data-alias");return window.api.base.postSuccess(window.__msRoot+"api/topic/"+o,{alias:i},function(t){switch(o){case"follow":a.attr("data-status","is_follow");break;case"unfollow":a.attr("data-status","not_follow")}}),!1}),$(document).on("click","[data-post-like-item] [data-action]",function(){const t=$(this),a=t.closest("[data-post-like-item]"),o=t.attr("data-action");var i=a.attr("data-alias");return window.api.base.postSuccess(window.__msRoot+"api/post/"+o,{alias:i},function(t){switch(o){case"like":a.attr("data-status","is_like");break;case"unlike":a.attr("data-status","not_like")}a.find(".cnt").html(t.data.count)}),!1})});