SVG support for category pictures (and more?)

Feature Requests
  • Major browsers have supported SVG for years (not sure about mobile browsers). Could NodeBB support this? I think this would be beneficial since the auto-scale without quality loss (from phone to mega-big screen). At this moment, NodeBB (at least the category picture upload) does not allow SVG.

    Note: there might be some security issues for common users, but for admins this might be acceptable (or let the owner of the site decide :)).

  • Hello @igbuend, welcome on board 🙂

    +1 for SVG support.

    For now if you want to get SVGs working, add 'image/svg+xml' into the array within src/controllers/admin/uploads.js:48 😉

    EDIT: created pull-request...


Suggested Topics


  • 0 Votes
    4 Posts
    1k Views

    @pitaj oh damn, that is unfortunate.

  • 2 Votes
    9 Posts
    4k Views

    @jarey

    MongoDB being schemaless for me is an easy way to work with the javascript objects in json. I think it would be harder to work with traditional relational databases like PostgreSQL in that approach.

    I'm not talking about whatever your specific use case is, I'm only talking about how NodeBB/database works.

    If you don't see MongoDB suitable, because its collection model is not used by Nodebb, the table model around PostgreSQL wouldn't be used either with the additional problem of being tied to an specific schema if you don't model all data with key/blob.

    What I'm saying is that the relational table structure (SQL) is closer to key/value (Redis) than the document-store structure (Mongo). Obviously that doesn't matter when talking about NodeBB/database since it doesn't using any of those specific features. It essentially just emulates Redis on top of Mongo, which a Postgre adapter would also do.

  • 2 Votes
    1 Posts
    1k Views

    Currently watching categories is opt-out. On forums having lots of new topics, this results in a huge number of items in example.com/unread. I think the unread page would be far more useful if watching categories was opt-in. That way /unread would contain only the items a user is interested in from the start and they won't have to go ignore a bunch of categories in order for /unread to become useful.

  • 0 Votes
    1 Posts
    1k Views

    Ability to collapse trees in ACP preview for Categories.

  • 1 Votes
    4 Posts
    2k Views

    Okay, in that case, I'll just mention one of you (or make a pull request for the docs) about each question that should be added to the docs.

    But you should make the FAQ page's existence more known.

    @julian @psychobunny