mastodon/app/models
Darius Kazemi 264655c53a
Fix account search not returning followed accounts first (#22956)
* Make autosuggest for mentions return followed accounts first

This makes it so that (when elasticsearch is disabled) when a user types '@foo' in the compose box, they are first going to get accounts they follow ordered by the ranking algorithm, and then second they will get accounts they do not follow, also ordered by the ranking algorithm.

This makes behavior more consistent with user expectation and also with results when elasticsearch is enabled.

* Fix ranking order to correct direction

* One more fixup per @gargron suggestion

* Tweak to ranking to no longer include following modifier
2023-01-06 07:35:52 +01:00
..
account Don't allow URLs that contain non-normalized paths to be verified (#20999) 2022-11-20 19:28:13 +01:00
account_suggestions
admin Support for import/export of instance-level domain blocks/allows for 4.x w/ additional fixes (#20597) 2022-11-17 11:05:09 +01:00
concerns Add follow request banner on account header (#20785) 2022-12-15 18:50:11 +01:00
form Fix site upload validations (#22479) 2023-01-05 13:42:03 +01:00
trends Fix error when passing unknown filter param in REST API (#20626) 2022-11-14 08:06:06 +01:00
web
account.rb Fix account search not returning followed accounts first (#22956) 2023-01-06 07:35:52 +01:00
account_alias.rb Micro-optimization: only split `acct` into two Strings (#19901) 2022-11-07 16:17:55 +01:00
account_conversation.rb
account_deletion_request.rb
account_domain_block.rb
account_filter.rb Add "disabled" user filter for admin/accounts UI (#21282) 2022-12-15 17:30:47 +01:00
account_migration.rb Fix 500 error when trying to migrate to an invalid address (#21462) 2022-12-07 02:35:39 +01:00
account_moderation_note.rb
account_note.rb
account_pin.rb
account_stat.rb
account_statuses_cleanup_policy.rb Micro-optimization: use `if`/`else` instead of `Array#compact` and `Array#min` (#19906) 2022-11-08 03:50:47 +01:00
account_statuses_filter.rb
account_suggestions.rb
account_summary.rb
account_warning.rb
account_warning_preset.rb
admin.rb
announcement.rb Change admin announcement edition interface to use datetime-local (#18321) 2022-10-28 12:56:32 +02:00
announcement_filter.rb Fix error when passing unknown filter param in REST API (#20626) 2022-11-14 08:06:06 +01:00
announcement_mute.rb
announcement_reaction.rb
appeal.rb
application_record.rb
backup.rb
block.rb
bookmark.rb
canonical_email_block.rb
content_retention_policy.rb
context.rb
conversation.rb
conversation_mute.rb
custom_emoji.rb Fix metadata scrubbing removing color profile from images (#20389) 2022-11-11 09:20:10 +01:00
custom_emoji_category.rb
custom_emoji_filter.rb Fix error when passing unknown filter param in REST API (#20626) 2022-11-14 08:06:06 +01:00
custom_filter.rb Fix irreversible and whole_word parameters handling in /api/v1/filters (#21988) 2022-12-07 00:10:53 +01:00
custom_filter_keyword.rb
custom_filter_status.rb
device.rb
domain_allow.rb Support for import/export of instance-level domain blocks/allows for 4.x w/ additional fixes (#20597) 2022-11-17 11:05:09 +01:00
domain_block.rb Support for import/export of instance-level domain blocks/allows for 4.x w/ additional fixes (#20597) 2022-11-17 11:05:09 +01:00
email_domain_block.rb
encrypted_message.rb
export.rb
extended_description.rb
favourite.rb
featured_tag.rb Improve performance by avoiding regex construction (#20215) 2022-11-10 05:49:30 +01:00
feed.rb
follow.rb
follow_recommendation.rb
follow_recommendation_filter.rb
follow_recommendation_suppression.rb
follow_request.rb
home_feed.rb
identity.rb
import.rb
instance.rb
instance_filter.rb Fix error when passing unknown filter param in REST API (#20626) 2022-11-14 08:06:06 +01:00
invite.rb
invite_filter.rb Fix error when passing unknown filter param in REST API (#20626) 2022-11-14 08:06:06 +01:00
ip_block.rb
list.rb
list_account.rb
list_feed.rb
login_activity.rb
marker.rb
media_attachment.rb Change remote media files to be downloaded outside of transactions (#21796) 2022-12-15 18:09:48 +01:00
mention.rb
message_franking.rb
mute.rb
notification.rb
one_time_key.rb
poll.rb Clear voter count when poll is reset (#21700) 2022-11-26 23:08:25 +01:00
poll_vote.rb
preview_card.rb Fix metadata scrubbing removing color profile from images (#20389) 2022-11-11 09:20:10 +01:00
preview_card_provider.rb Fix metadata scrubbing removing color profile from images (#20389) 2022-11-11 09:20:10 +01:00
preview_card_trend.rb
privacy_policy.rb
public_feed.rb Revert filtering public timelines by locale by default (#20294) 2022-11-10 05:34:42 +01:00
relationship_filter.rb Fix error when passing unknown filter param in REST API (#20626) 2022-11-14 08:06:06 +01:00
relay.rb Strip spaces around URL when adding a relay (#22655) 2023-01-05 13:33:33 +01:00
remote_follow.rb
report.rb
report_filter.rb Fix error when passing unknown filter param in REST API (#20626) 2022-11-14 08:06:06 +01:00
report_note.rb
rule.rb Fix rules with same priority being sorted non-deterministically (#20623) 2022-11-14 06:28:19 +01:00
scheduled_status.rb
search.rb
session_activation.rb
setting.rb
site_upload.rb Fix metadata scrubbing removing color profile from images (#20389) 2022-11-11 09:20:10 +01:00
status.rb refactor(vacuum statuses): reduce amount of db queries and load for each query - improve performance (#21487) 2022-11-27 20:41:18 +01:00
status_edit.rb
status_pin.rb
status_stat.rb
status_trend.rb
system_key.rb
tag.rb Fix ・ detection in hashtag regex to construct hashtag correctly (#22888) 2023-01-04 02:12:48 +01:00
tag_feed.rb Revert filtering public timelines by locale by default (#20294) 2022-11-10 05:34:42 +01:00
tag_follow.rb
tombstone.rb
trends.rb
unavailable_domain.rb
user.rb Add webhook `account.approved` (#22938) 2023-01-05 13:29:49 +01:00
user_invite_request.rb
user_ip.rb
user_role.rb
web.rb
webauthn_credential.rb
webhook.rb Add webhook `account.approved` (#22938) 2023-01-05 13:29:49 +01:00