File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed
tests/phpunit/tests/includes Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change 1+ Significance: patch
2+ Type: fixed
3+
4+ False mention email notifications for users in CC field without actual mention tags.
Original file line number Diff line number Diff line change @@ -832,6 +832,13 @@ public function test_mention_with_array() {
832832 'object ' => array (
833833 'id ' => 'https://example.com/post/1 ' ,
834834 'content ' => 'Test mention ' ,
835+ 'tag ' => array (
836+ array (
837+ 'type ' => 'Mention ' ,
838+ 'href ' => Actors::get_by_id ( $ user_id )->get_id (),
839+ 'name ' => '@test ' ,
840+ ),
841+ ),
835842 ),
836843 'cc ' => array ( Actors::get_by_id ( $ user_id )->get_id () ),
837844 );
@@ -954,6 +961,13 @@ public function test_mention_filters_recipients() {
954961 'object ' => array (
955962 'id ' => 'https://example.com/post/1 ' ,
956963 'content ' => 'Test mention ' ,
964+ 'tag ' => array (
965+ array (
966+ 'type ' => 'Mention ' ,
967+ 'href ' => Actors::get_by_id ( $ user_id )->get_id (),
968+ 'name ' => '@test ' ,
969+ ),
970+ ),
957971 ),
958972 // Only user_id is in CC, not other_user_id.
959973 'cc ' => array ( Actors::get_by_id ( $ user_id )->get_id () ),
You can’t perform that action at this time.
0 commit comments