mirror of
https://github.com/discourse/discourse.git
synced 2025-05-28 13:51:18 +08:00
FEATURE: support "unlisted" badges.
This commit is contained in:
@ -2,7 +2,7 @@ class BadgesController < ApplicationController
|
||||
skip_before_filter :check_xhr, only: [:index, :show]
|
||||
|
||||
def index
|
||||
badges = Badge.all.to_a
|
||||
badges = Badge.where(listable: true).all.to_a
|
||||
serialized = MultiJson.dump(serialize_data(badges, BadgeSerializer, root: "badges"))
|
||||
respond_to do |format|
|
||||
format.html do
|
||||
|
Reference in New Issue
Block a user