[#1335] User: refactored :blocks field into :blocked_users relation.
authorIvan Tashkinov <ivantashkinov@gmail.com>
Sun, 10 Nov 2019 13:30:21 +0000 (16:30 +0300)
committerIvan Tashkinov <ivantashkinov@gmail.com>
Sun, 10 Nov 2019 13:30:21 +0000 (16:30 +0300)
commit3db988250bcd279f20bd1742ca454aa187d89368
tree6ea77632f57f8e35de46c5416374dd86d6bca784
parent3a1aaadc18372fb8c76fa72cd20ed65dd85b2326
[#1335] User: refactored :blocks field into :blocked_users relation.
Introduced UserBlock.
20 files changed:
lib/pleroma/notification.ex
lib/pleroma/user.ex
lib/pleroma/user/search.ex
lib/pleroma/user_block.ex [new file with mode: 0644]
lib/pleroma/web/activity_pub/activity_pub.ex
lib/pleroma/web/mastodon_api/controllers/account_controller.ex
lib/pleroma/web/streamer/worker.ex
priv/repo/migrations/20191108161911_create_user_blocks.exs [new file with mode: 0644]
priv/repo/migrations/20191108173911_data_migration_populate_user_blocks.exs [new file with mode: 0644]
test/conversation/participation_test.exs
test/notification_test.exs
test/user_test.exs
test/web/activity_pub/activity_pub_test.exs
test/web/activity_pub/transmogrifier/follow_handling_test.exs
test/web/mastodon_api/controllers/account_controller_test.exs
test/web/mastodon_api/controllers/status_controller_test.exs
test/web/mastodon_api/controllers/timeline_controller_test.exs
test/web/mastodon_api/views/account_view_test.exs
test/web/streamer/streamer_test.exs
test/web/twitter_api/util_controller_test.exs