<?php

namespace GemBoards;

use GemBoards\hooks\MediaLibrary;
use GemBoards\Hooks\User;

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

Classes\Mention\Task::init();
Classes\Mention\Comment::init();
User::init();
MediaLibrary::init();

add_filter( 'rest_comment_collection_params', 'gemboards_task_comment_query_params' );

add_filter( 'rest_comment_query', 'gemboards_task_comment_query', 10, 2 );

add_action( 'gemboards/task/mentioned', 'gemboards_task_mention_notification', 10, 2 );
add_action( 'gemboards/task_comment/mentioned', 'gemboards_task_comment_mention_notification', 10, 2 );

add_action( 'gemboards/board/member/assigned', 'gemboards_board_member_assigned', 10, 2 );
add_action( 'gemboards/board/member/removed', 'gemboards_board_member_removed', 10, 2 );
add_action( 'admin_bar_menu', 'gemboards_top_bar_link', 999 );
