]> cat aescling's git repositories - mastodon.git/commit
Improve support for aspects/circles (#8950)
authorEugen Rochko <eugen@zeonfederated.com>
Wed, 17 Oct 2018 15:13:04 +0000 (17:13 +0200)
committerGitHub <noreply@github.com>
Wed, 17 Oct 2018 15:13:04 +0000 (17:13 +0200)
commitddd30f331c7a2af38176d72d9ce2265068984bed
tree78ff80eee6e2a10ba8539c6e3211a71fc6ca0ead
parent00387be2898cab016fa730d4f5683202cc540442
Improve support for aspects/circles (#8950)

* Add silent column to mentions

* Save silent mentions in ActivityPub Create handler and optimize it

Move networking calls out of the database transaction

* Add "limited" visibility level masked as "private" in the API

Unlike DMs, limited statuses are pushed into home feeds. The access
control rules between direct and limited statuses is almost the same,
except for counter and conversation logic

* Ensure silent column is non-null, add spec

* Ensure filters don't check silent mentions for blocks/mutes

As those are "this person is also allowed to see" rather than "this
person is involved", therefore does not warrant filtering

* Clean up code

* Use Status#active_mentions to limit returned mentions

* Fix code style issues

* Use Status#active_mentions in Notification

And remove stream_entry eager-loading from Notification
23 files changed:
app/lib/activitypub/activity.rb
app/lib/activitypub/activity/create.rb
app/lib/activitypub/tag_manager.rb
app/lib/feed_manager.rb
app/lib/formatter.rb
app/lib/ostatus/atom_serializer.rb
app/models/account_conversation.rb
app/models/mention.rb
app/models/notification.rb
app/models/status.rb
app/models/stream_entry.rb
app/policies/status_policy.rb
app/serializers/activitypub/note_serializer.rb
app/serializers/rest/status_serializer.rb
app/services/batched_remove_status_service.rb
app/services/fan_out_on_write_service.rb
app/services/remove_status_service.rb
app/views/stream_entries/_detailed_status.html.haml
app/workers/activitypub/distribution_worker.rb
app/workers/activitypub/reply_distribution_worker.rb
db/migrate/20181010141500_add_silent_to_mentions.rb [new file with mode: 0644]
db/schema.rb
spec/lib/activitypub/activity/create_spec.rb