mastodon/app/models
Eugen Rochko 6ff67be0f6
Add a spam check ()
* Add a spam check

* Use Nilsimsa to generate locality-sensitive hashes and compare using Levenshtein distance

* Add more tests

* Add exemption when the message is a reply to something that mentions the sender

* Use Nilsimsa Compare Value instead of Levenshtein distance

* Use MD5 for messages shorter than 10 characters

* Add message to automated report, do not add non-public statuses to
automated report, add trust level to accounts and make unsilencing
raise the trust level to prevent repeated spam checks on that account

* Expire spam check data after 3 months

* Add support for local statuses, reduce expiration to 1 week, always create a report

* Add content warnings to the spam check and exempt empty statuses

* Change Nilsimsa threshold to 95 and make sure removed statuses are removed from the spam check

* Add all matched statuses into automatic report
2019-07-13 16:45:50 +02:00
..
admin Fix option to send e-mail notification about account action always being true () 2019-07-06 13:54:32 +02:00
concerns Remove Atom feeds and old URLs in the form of `GET /:username/updates/:id` () 2019-07-07 16:16:51 +02:00
form Refactor all ActivityPub deliveries to be serialized and signed through one concern () 2019-06-04 23:11:18 +02:00
web
account.rb Add a spam check () 2019-07-13 16:45:50 +02:00
account_conversation.rb
account_domain_block.rb
account_filter.rb Add moderation API () 2019-06-20 02:52:34 +02:00
account_identity_proof.rb Fix Keybase verification using wrong domain for remote accounts () 2019-04-10 20:28:43 +02:00
account_moderation_note.rb
account_pin.rb
account_stat.rb
account_tag_stat.rb
account_warning.rb
account_warning_preset.rb
admin.rb
application_record.rb
backup.rb
block.rb
context.rb
conversation.rb
conversation_mute.rb
custom_emoji.rb Add categories for custom emojis () 2019-06-28 15:54:10 +02:00
custom_emoji_category.rb Add categories for custom emojis () 2019-06-28 15:54:10 +02:00
custom_emoji_filter.rb
custom_filter.rb Fix expiration date of filters being set to “Never” when editing them () 2019-06-30 16:11:21 +02:00
domain_block.rb Change domain blocks to automatically support subdomains () 2019-06-22 00:13:10 +02:00
email_domain_block.rb
export.rb Export and import show_reblogs together with following list () 2019-04-08 07:28:27 +02:00
favourite.rb
featured_tag.rb
feed.rb
follow.rb
follow_request.rb
home_feed.rb
identity.rb
import.rb
instance.rb Remove expensive counters from federation page in admin UI () 2019-06-22 00:39:09 +02:00
instance_filter.rb
invite.rb
invite_filter.rb
list.rb
list_account.rb
list_feed.rb
media_attachment.rb Fix audio-only OGG and WebM files not being processed as such () 2019-06-22 16:54:06 +02:00
mention.rb
mute.rb
notification.rb Add `account_id` param to `GET /api/v1/notifications` () 2019-05-21 13:28:49 +02:00
poll.rb
poll_vote.rb
preview_card.rb
relay.rb
remote_follow.rb
report.rb Add moderation API () 2019-06-20 02:52:34 +02:00
report_filter.rb Add moderation API () 2019-06-20 02:52:34 +02:00
report_note.rb
scheduled_status.rb
search.rb
session_activation.rb
setting.rb
site_upload.rb Improvements to image upload validation and creation () 2019-04-01 07:30:46 +02:00
status.rb Fix Status.remote scope matching *all* statuses () 2019-07-08 18:17:22 +02:00
status_pin.rb
status_stat.rb
subscription.rb
tag.rb
tombstone.rb Record deleted(by mod) status to prevent re-appear () 2019-05-09 22:03:02 +02:00
trending_tags.rb
user.rb Add option to disable blurhash previews () 2019-06-26 19:33:04 +02:00
user_invite_request.rb Add "why do you want to join" field to invite requests () 2019-04-09 23:06:30 +09:00
web.rb