Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Andrew Brown
    @drusepth
    Is there an option somewhere to allow users to delete their own threads? I don't see anything in the docs
    Gleb Mazovetskiy
    @glebm
    @drusepth You can override 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
    Andrew Brown
    @drusepth
    That worked perfectly, thank you! :)
    Suki
    @SUKItheFox
    Hey guys- what a great forum engine you've made!! Respect! :)
    Is there a way to order Sticky Topics in the Topics index page according to position instead of order_recently_posted_first? So when I make a new topic and make it sticky, it will be positioned according to when it was created.
    Gleb Mazovetskiy
    @glebm
    @SUKItheFox There is no way to do that via configuration but you can simply redefine (monkey-patch) the order_sticky_first scope in the initializer (https://github.com/thredded/thredded/blob/master/app/models/thredded/topic.rb#L16)
    We're in top 20 at ProductHunt today :)
    Tim Diggins
    @timdiggins
    Woohoo 🎉— nice one Gleb
    Andrei Bondarev
    @andreibondarev
    Thank you for an excellent gem!
    What does the product roadmap look like for Thredded? Is there a list of features to be developed?
    Gleb Mazovetskiy
    @glebm
    @andreibondarev See the open issues on GitHub if you want to help with the development. There is no roadmap, it's entirely community-driven.
    vipul Aggarwal
    @vipuldcoder
    Fredrik fra Fana
    @fredrikfrafana_twitter
    Hi! How do I create new extensions for my Thredded app? I'd like my functionality to be split into separate repos/Rails Engines as opposed to throwing everything into one messy soup. :)
    Fredrik fra Fana
    @fredrikfrafana_twitter
    Btw I just ran thredded_create_app and it seems it forgot to run bundle exec rake db:create. Can anyone confirm?
    pzh1992
    @pzh1992
    [IMPORTANT]
    Don't forget to include the Crash Report log file under
    DiagnosticReports directory in bug reports.
    Where is the log file?
    eljarpo
    @eljarpo
    Hi, i have this error after running thredded_create_app forum: thredded_create_app: No match found for (?-mix:error_messages! %>\n\n) in app/views/devise/registrations/new.html.erb, osx mojave, ruby 2.5.1. Any help?. Thanks!
    Andrew Brown
    @drusepth
    not 100% sure, but it looks like @glebm might need to adjust the generator in thredded_create_app, since it's failing here: https://github.com/thredded/thredded_create_app/blob/4f4e4b73e6a26a74e880da25bf0c14eb5455742d/lib/thredded_create_app/tasks/add_invisible_captcha.rb#L34 (I think)
    @glebm looks like https://github.com/plataformatec/devise/commit/76b87dc0e83736cf16e3ffbc465fcd8ee3c06d46#diff-fc9dcab47d10e11cb5c43f4a83df6cf4L4 is the commit that broke it (moving devise_error_messages! to a partial)
    Someone please send a PR :)
    Yaacob Noor
    @maxcobmara
    @eljarpo thredded_create_app --rails-version 5.2.3 --verbose <forum_name> worked for me
    Yaacob Noor
    @maxcobmara
    Getting <svg><!-- SVG file not found: 'thredded/settings.svg' --></svg> in my production server. Anyone know how to load this up manually. I'm using Mina to deploy
    Yaacob Noor
    @maxcobmara
    Sorted, copied the svgs from the git repo into app and redeployed. thanks
    Gleb Mazovetskiy
    @glebm
    @maxcobmara @eljarpo I've just released new versions of thredded and thredded_create_app with Rails 6 fixes.
    thredded_create_app now uses Webpack for JavaScript by default (you can pass --no-webpack-js to uses Sprockets for JS like before)
    z4ppy
    @z4ppy
    Hello :)
    z4ppy
    @z4ppy
    I'm installing thredded in existing app ; I did "rails generate thredded:install" and got one file (config/initializers/thredded.rb) ; When i run "rake thredded:install:migrations" i got this error :
    root@3405c6af0de1:/ecse/spree_dep/spree_forum# rake thredded:install:migrations
    rake aborted!
    Don't know how to build task 'thredded:install:migrations' (See the list of available tasks with rake --tasks)
    How i can generate migrations please ?
    (rails 6)
    Gleb Mazovetskiy
    @glebm
    @z4ppy Does rails thredded:install:migrations work?
    z4ppy
    @z4ppy
    Hello Gleb !
    Wasn't, but i found why .. i'm making spree extension with thredded .. with some require and running command from host application, that's works ! :)
    (engine in engine, install did not make sense, sorry for the question)
    z4ppy
    @z4ppy
    Now i got this error when a create category : undefined local variable or method `translation_class' for #<ActiveRecord::Relation []>
    (FriendlyId::SlugGenerator#available?)
    (Thredded::Topic::ActiveRecord_Relation#exists_by_friendly_id?)
    z4ppy
    @z4ppy
    Fixed with the monkey patch : norman/friendly_id-globalize#24
    Andrew Brown
    @drusepth

    This is a weird one, but I've been having a bunch of users (and now I'm starting to see it myself) complain that entire threads are showing up as just the same comment repeated. I saw it once when I loaded a thread initially and all the comments' text were just the third comment's text repeated, and I saw it once when I responded to a thread and then suddenly all the comments turned into another comment's text.

    Seems to go away when I refresh and only happens rarely, but I don't think I know the piping well enough to even guess at what might be going on and/or how to gather better info before opening an issue for it. Here's some users complaining about it (ignore 2nd comment, I think that's just user-error) for more info/context: https://www.notebook.ai/forum/site-support/uncomfortable-glitch-lmao

    Andrew Brown
    @drusepth
    Heh, just clicked back onto the thread and saw it. Here's a screenshot in case I described what people are seeing poorly: https://i.imgur.com/k3oJ6IM.png
    Gleb Mazovetskiy
    @glebm
    Andrew Brown
    @drusepth
    Oh whoops, my bad. Should have looked at existing issues first.
    Gleb Mazovetskiy
    @glebm
    @drusepth No worries! Help debugging that issue is appreciated, we still don't know what's happening, more details in the bug
    Andrew Brown
    @drusepth
    I'll see what I can do to diagnose what's up. In the meantime, is there a good/easy way to disable caching in thredded altogether to mitigate it?
    Mustapha
    @musait
    Hello @glebm. I just installed the gem and I want to override the front because I already have a template. How can I generate all the corresponding views to override them ? Thanks :)
    Mustapha
    @musait
    I understood that I can generate a view thanks to this command : mkdir -p app/views/thredded/posts && cp "$(bundle show thredded)/$_/_post.html.erb" "$_" but how can I do that for all the views in one move ?
    Mustapha
    @musait
    Okay I found it : cp -r ~/.rvm/gems/ruby-2.7.0/gems/thredded-0.16.16/app/views/thredded [path_of_your_rails_app_views_directory]
    Gleb Mazovetskiy
    @glebm
    @musait Don't copy all the views, it'll be hard to stay compatible with updates if you do
    You can also override just the layout https://github.com/thredded/thredded#application-layout
    Mustapha
    @musait
    @glebm Yes, I saw that, but I have multiple header and I don't render my header in my application.html.erb so I have to render the Thredded header view directly, that's why I have to import all the views to find out which view render the header :)
    Btw, Thanks for this gem, it's very helpful and It save a lot of time.
    Gleb Mazovetskiy
    @glebm
    @musait You can use view hooks for changing the rendering https://github.com/thredded/thredded#view-hooks
    You don't need to copy a view file in order to render it