Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions plugin.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# name: discourse-locations
# about: Tools for handling locations in Discourse
# version: 6.2.7
# version: 6.2.8
# authors: Angus McLeod, Robert Barrow
# contact_emails: [email protected]
# url: https://github.com/angusmcleod/discourse-locations
Expand Down Expand Up @@ -91,7 +91,7 @@ class SiteSettings::TypeSupervisor
add_to_serializer(:topic_list_item, :include_location?) { object.location.present? }

User.register_custom_field_type('geo_location', :json)
register_editable_user_custom_field :geo_location if defined? register_editable_user_custom_field
register_editable_user_custom_field [:geo_location, geo_location: {}] if defined? register_editable_user_custom_field
add_to_serializer(:user, :geo_location, false) { object.custom_fields['geo_location'] }
add_to_serializer(:user_card, :geo_location, false) { object.custom_fields['geo_location'] }
add_to_serializer(:user_card, :include_geo_location?) do
Expand Down