.order(case_insensitive.column_for_order.asc)
@drusepth For ignoring topics, there is an issue but noone is working on it: thredded/thredded#224.
However, that issue is about manual ignoring of topics only, and not user-level mute/block like you're suggesting
We'll be happy to accept a PR but please start with a design doc (an issue with a detailed description of this will work)
Thredded::TopicPolicy#destroy?
, e.g. like this:# config/initializers/thredded.rb
module AllowUsersToDeleteOwnTopics
def destroy?
super || @topic.user_id == @user.id
end
end
Rails.application.config.to_prepare do
Thredded::TopicPolicy.prepend AllowUsersToDeleteOwnTopics
end
order_sticky_first
scope in the initializer (https://github.com/thredded/thredded/blob/master/app/models/thredded/topic.rb#L16)