Exemplo n.º 1
0
def unfollow_tag(id):
    '取消关注话题'
    if current_user.is_following_tag(id):
        current_user.unfollow_tag(id)
    return jsonify({})  #返回空的json
Exemplo n.º 2
0
def follow_tag(id):
    '关注话题'
    if not current_user.is_following_tag(id):
        current_user.follow_tag(id)
    return jsonify({})  #返回空的json