discourse/app/models
Matt Palmer c09f345cff Proxy letter avatars by default
On sites that don't otherwise configure an avatar fallback, Discourse will
now tell the client to get its letter avatars from a location which nginx
proxies to the centralised `avatars.discourse.org` service.  This alleviates
privacy concerns, whilst still providing some degree of performance benefit
(no need for every site to delay avatar response by 300ms for image
rendering).

It is still possible to gain the benefits of global image caching and the
lower latency of requesting directly from a CDN, by explicitly changing the
`external_system_avatars_url` site setting to
`https://avatars.discourse.org/letter/{first_letter}/{color}/{size}.png`.
2015-11-06 14:13:44 +11:00
..
concerns select less data 2015-08-05 16:09:21 +10:00
about.rb PERF: Cache About#stats. 2015-07-20 22:45:05 +08:00
admin_dashboard_data.rb FEATURE: Admin dashboard data for user profile views. 2015-09-16 14:48:31 +08:00
anon_site_json_cache_observer.rb PERF: introduce full cache for site json when anon 2015-09-28 16:50:24 +10:00
api_key.rb create a new table to maintain csv export log 2014-12-24 16:25:36 +05:30
application_request.rb cut out an exception 2015-08-19 16:57:26 +10:00
auto_track_duration_site_setting.rb fix the build 2015-09-14 10:48:24 +02:00
backup.rb FEATURE: move migrate_to_new_scheme into a background job 2015-06-12 12:07:57 +02:00
badge.rb FIX: sharing badges were off by 1 2015-10-13 12:32:29 +11:00
badge_grouping.rb FIX: remove nullable dates post upgrade to Rails 4 2014-08-27 15:19:25 +10:00
badge_type.rb FIX: remove nullable dates post upgrade to Rails 4 2014-08-27 15:19:25 +10:00
category.rb PERF: memoize to avoid N+1 query in category page 2015-10-02 12:35:47 +10:00
category_custom_field.rb FIX: remove nullable dates post upgrade to Rails 4 2014-08-27 15:19:25 +10:00
category_featured_topic.rb FIX: categories page would sometimes show no topics, even if there are some visible topics to show 2015-09-21 18:13:14 -04:00
category_featured_user.rb FIX: remove nullable dates post upgrade to Rails 4 2014-08-27 15:19:25 +10:00
category_group.rb FEATURE: Log staff actions for Category changes. 2015-09-18 10:53:08 +08:00
category_list.rb FIX: categories' notification_level wasn't serialized when hitting /categories 2015-09-15 14:58:22 +02:00
category_search_data.rb FEATURE: Badge progress 2014-07-03 17:29:44 +10:00
category_user.rb FIX: ensure CategoryUser consistency 2015-09-02 22:02:31 +02:00
color_scheme.rb PERF: omit 2 queries on every full page load 2015-09-23 16:47:17 +10:00
color_scheme_color.rb FIX: remove nullable dates post upgrade to Rails 4 2014-08-27 15:19:25 +10:00
digest_email_site_setting.rb fix the build 2015-09-14 10:48:24 +02:00
digest_unsubscribe_key.rb update annotations 2015-09-18 10:41:10 +10:00
directory_item.rb update annotations 2015-09-18 10:41:10 +10:00
discourse_single_sign_on.rb FIX: only override sso name / username if it is supplied 2015-08-24 10:24:33 +10:00
discourse_version_check.rb FEATURE: Use git describe for dashboard version 2015-02-23 16:07:08 -08:00
draft.rb update annotations 2015-09-18 10:41:10 +10:00
draft_sequence.rb FIX: when advancing draft sequence remove old drafts 2015-06-02 20:28:33 +10:00
email_log.rb Add API support for querying admin reports by date range 2014-11-05 13:11:37 -05:00
email_token.rb FIX: mark user as approved if an invite is already present 2015-06-26 01:57:29 +05:30
embeddable_host.rb update annotations 2015-09-18 10:41:10 +10:00
embedding.rb Can edit settings on the embedding page 2015-08-20 15:56:05 -04:00
emoji.rb FEATURE: add support for custom emojis via plugins 2015-11-05 17:25:26 +01:00
emoji_set_site_setting.rb FIX: emoji rebuild when changing emoji set for the 1st time 2015-01-07 17:54:09 +01:00
facebook_user_info.rb FIX: remove nullable dates post upgrade to Rails 4 2014-08-27 15:19:25 +10:00
github_user_info.rb FIX: remove nullable dates post upgrade to Rails 4 2014-08-27 15:19:25 +10:00
global_setting.rb FIX: allow global settings to include keys that have numbers in them 2015-08-14 17:01:21 +10:00
google_user_info.rb FIX: remove nullable dates post upgrade to Rails 4 2014-08-27 15:19:25 +10:00
group.rb PERF: introduce fragment caches in site serializer 2015-09-28 16:50:24 +10:00
group_custom_field.rb FIX: remove nullable dates post upgrade to Rails 4 2014-08-27 15:19:25 +10:00
group_manager.rb update annotations 2015-09-18 10:41:10 +10:00
group_user.rb PERF: add missing index on group_users 2015-09-18 10:43:53 +10:00
incoming_domain.rb FIX: catch specific exception 2014-08-06 10:00:55 +10:00
incoming_link.rb handle invalid param gracefully 2015-05-07 11:06:42 +10:00
incoming_links_report.rb Replace Hash#keys.each with Hash#each_key for some perf boost 2015-04-18 21:53:53 +10:00
incoming_referer.rb FIX: catch specific exception 2014-08-06 10:00:55 +10:00
invite.rb FIX: return 422 if the invite is already redeemed 2015-09-16 17:30:00 +05:30
invite_redeemer.rb FIX: do not delete already redeemed invite 2015-03-25 23:30:09 +05:30
invited_group.rb FIX: remove nullable dates post upgrade to Rails 4 2014-08-27 15:19:25 +10:00
locale_site_setting.rb PERF: only load locale files we are using 2015-02-12 12:08:14 +11:00
muted_user.rb update annotations 2015-09-18 10:41:10 +10:00
new_topic_duration_site_setting.rb fix the build 2015-09-14 10:48:24 +02:00
notification.rb update annotations 2015-09-18 10:41:10 +10:00
oauth2_user_info.rb FIX: remove nullable dates post upgrade to Rails 4 2014-08-27 15:19:25 +10:00
optimized_image.rb FIX: resize emoji job was generate errors 2015-10-30 23:31:30 +01:00
permalink.rb FIX: permalinks redirect on subfolder installs could add the subfolder to the url twice 2015-10-12 16:54:53 -04:00
plugin_store.rb removed useless assignments at some places 2014-08-19 18:10:23 +05:30
plugin_store_row.rb
post.rb FIX: do not notify in title if you created the post 2015-10-12 12:45:04 +11:00
post_action.rb FIX: some reports ignored date range parameters 2015-10-19 16:30:34 -04:00
post_action_type.rb PERF: introduce fragment caches in site serializer 2015-09-28 16:50:24 +10:00
post_alert_observer.rb FIX: correctly mute likers 2015-03-26 12:08:04 +11:00
post_analyzer.rb correct hack and move to oneboxer 2015-09-25 20:14:53 +10:00
post_custom_field.rb update annotations 2015-09-18 10:41:10 +10:00
post_detail.rb FIX: remove nullable dates post upgrade to Rails 4 2014-08-27 15:19:25 +10:00
post_mover.rb Use small actions for moving posts 2015-07-31 16:30:18 -04:00
post_reply.rb FIX: remove nullable dates post upgrade to Rails 4 2014-08-27 15:19:25 +10:00
post_revision.rb add allowed_ips to api_keys 2014-11-20 14:53:15 +11:00
post_search_data.rb FEATURE: Badge progress 2014-07-03 17:29:44 +10:00
post_stat.rb update annotations 2015-09-18 10:41:10 +10:00
post_timing.rb FEATURE: track user visits on mobile and display on admin dashboard in a new Mobile section 2015-07-07 14:06:42 -04:00
post_upload.rb
queued_post.rb update annotations 2015-09-18 10:41:10 +10:00
quoted_post.rb FIX: remove nullable dates post upgrade to Rails 4 2014-08-27 15:19:25 +10:00
report.rb FIX: some reports ignored date range parameters 2015-10-19 16:30:34 -04:00
rtl.rb add persian language to rtl support 2015-04-07 00:36:46 +04:30
s3_region_site_setting.rb FEATURE: generate (avatar) thumbnails in a background task 2015-05-25 17:59:00 +02:00
screened_email.rb FEATURE: automatic daily roll-up for screened IP addresses 2015-03-09 18:55:17 +01:00
screened_ip_address.rb FEATURE: add site setting use_admin_ip_whitelist to enable/disable the whitelisting of admins by IP address 2015-09-23 12:15:08 -04:00
screened_url.rb FIX: remove nullable dates post upgrade to Rails 4 2014-08-27 15:19:25 +10:00
search_observer.rb - FEATURE: revamped poll plugin 2015-04-23 19:33:29 +02:00
single_sign_on_record.rb FIX: remove nullable dates post upgrade to Rails 4 2014-08-27 15:19:25 +10:00
site.rb Correct site spec 2015-09-28 16:50:24 +10:00
site_customization.rb update annotations 2015-09-18 10:41:10 +10:00
site_setting.rb FIX: select appropriate period when redirecting to top 2015-09-21 20:28:20 +02:00
site_text.rb move SiteText.{head,top,bottom} to SiteCustomization 2015-01-14 12:15:53 +01:00
site_text_type.rb Renaming site contents to site text 2014-09-24 16:08:14 -04:00
slug_setting.rb FEATURE: add slug geneartion options 2015-05-05 18:08:30 +08:00
stylesheet_cache.rb update annotations 2015-09-18 10:41:10 +10:00
top_lists.rb
top_menu_item.rb
top_topic.rb FIX: select appropriate period when redirecting to top 2015-09-21 20:28:20 +02:00
topic.rb Merge pull request #3878 from gdpelican/optimize-all-allowed-users 2015-11-02 17:06:36 +01:00
topic_allowed_group.rb
topic_allowed_user.rb FIX: remove nullable dates post upgrade to Rails 4 2014-08-27 15:19:25 +10:00
topic_custom_field.rb annotations 2015-02-04 16:34:25 +11:00
topic_embed.rb update annotations 2015-09-18 10:41:10 +10:00
topic_featured_users.rb FIX: whispers should not be revealed in reply to, or reply expansion 2015-09-25 10:16:19 +10:00
topic_invite.rb FIX: remove nullable dates post upgrade to Rails 4 2014-08-27 15:19:25 +10:00
topic_link.rb FIX: Allow really long links to work 2015-09-25 14:07:20 -04:00
topic_link_click.rb FIX: Allow really long links to work 2015-09-25 14:07:20 -04:00
topic_list.rb FEATURE: allow efficient preloading of custom fields in topic list 2015-08-05 16:09:21 +10:00
topic_notifier.rb
topic_participants_summary.rb FEATURE: add the first 3 participants in a private message 2014-05-12 09:32:49 +02:00
topic_poster.rb
topic_posters_summary.rb FIX: missing avatar when sizing down window 2014-09-19 12:35:35 +10:00
topic_status_update.rb FEATURE: make pin expiration mandatory 2015-07-29 16:34:21 +02:00
topic_tracking_state.rb PERF: optimise new/unread query 2015-09-29 11:55:09 +10:00
topic_user.rb FEATURE: no need to cap new and unread together anymore 2015-10-01 17:17:15 +10:00
topic_view_item.rb FIX: Use custom date for redis key in TopicViewItem.add. 2015-09-14 11:17:28 +08:00
trust_level3_requirements.rb PERF: slow user pages in admin. add an index for trust level 3 calculations, and memoize query results 2015-01-19 15:30:16 -05:00
trust_level_setting.rb fix the build 2015-09-14 10:48:24 +02:00
twitter_user_info.rb FIX: remove nullable dates post upgrade to Rails 4 2014-08-27 15:19:25 +10:00
upload.rb FIX: only downsize user card & profile backgrounds 2015-09-24 21:04:06 +02:00
user.rb Proxy letter avatars by default 2015-11-06 14:13:44 +11:00
user_action.rb FIX: properly filter whispers in user stream 2015-09-22 00:50:52 +02:00
user_action_observer.rb FIX: When recovering a post, it should recreate user actions 2015-09-18 12:48:43 -04:00
user_avatar.rb FIX: refreshing gravatar wasn't working 2015-09-17 19:42:44 +02:00
user_badge.rb FIX: the badge triggers broke 2015-02-26 00:50:58 +00:00
user_custom_field.rb FIX: remove nullable dates post upgrade to Rails 4 2014-08-27 15:19:25 +10:00
user_email_observer.rb FIX: don't send notification emails to deactivated user 2015-08-31 12:35:12 +05:30
user_export.rb annotations 2015-02-04 16:34:25 +11:00
user_field.rb update annotations 2015-09-18 10:41:10 +10:00
user_field_option.rb update annotations 2015-09-18 10:41:10 +10:00
user_history.rb FEATURE: Log staff actions for Category changes. 2015-09-18 10:53:08 +08:00
user_open_id.rb FIX: remove nullable dates post upgrade to Rails 4 2014-08-27 15:19:25 +10:00
user_profile.rb FEATURE: Track user profile views. 2015-09-16 14:48:31 +08:00
user_profile_view.rb FEATURE: Admin dashboard data for user profile views. 2015-09-16 14:48:31 +08:00
user_search.rb PERF: only use fulltext when searching for a user (I checked, it's enough) 2015-11-04 23:04:37 +01:00
user_search_data.rb FEATURE: Badge progress 2014-07-03 17:29:44 +10:00
user_stat.rb PERF: stop mucking with user stats every 15 minutes 2014-08-07 14:20:42 +10:00
user_visit.rb update annotations 2015-09-18 10:41:10 +10:00
username_validator.rb FIX: Allow trailing _ because we used to. 2015-09-09 14:06:36 -04:00
warning.rb add allowed_ips to api_keys 2014-11-20 14:53:15 +11:00