Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    z4ppy
    @z4ppy
    (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
    Andrew Brown
    @drusepth
    Just wanted to say thanks again for handling that caching bug. There's no way on earth I would have found that cause :|
    Mustapha
    @musait
    Hi there
    Is there a way to display the topics under the categories ?
    Travis Tillotson
    @Opus1no2
    Does Thredded support absolute URLS for the inline svgs it defines in its views?
    Andrew Brown
    @drusepth
    I spent most of the afternoon figuring out how to add after_create callbacks to some Thredded models, then wrote up https://medium.com/indent-labs/extending-thredded-or-any-rails-gem-with-activerecord-callbacks-aa0b5aa4e630 with how to do so in case it helps anyone else <3
    Sue Feng Tan
    @suefeng
    Hi I have a question about the Thredded::TopicPostsPageView for pagination and post/comment threading. Is there a way to integrate posts with nested posts similar to nested comments with the pagination such that a thread is not separated into two different pages when there's pagination?
    1 reply
    Forrest Chang
    @fkchang
    Anyone able to get thredded to force authentication, the code in the readme isn't working for me.
    Jasson Cascante
    @yeco

    Hi, quick question (hopefully).

    Is there a way to enforce moderation in the users' first post of every topic?

    I tried doing a callback to set moderation_state = 0 in an extension but that didn't worked. Any clues would be appreciated.

    colinmccann
    @colinmccann
    I encountered the following during setup of thredded_create_app
    thredded_create_app: No match found for :password in config/initializers/filter_parameter_logging.rb. To resolve this, I rewrote this line, replacing password with passw. Not sure if this necessitates a PR, or if it's something specific to my setup (ruby 2.5.1, rails 6.1.4, postgres, osx).
    colinmccann
    @colinmccann
    (of note - rails 6.1.4 is still unsupported and will result in all sorts of errors. I had to jump through more hoops to finally get this to work with 5.2.2)