Questions tagged [discourse]

Discourse is the 100% open source discussion platform built for the next decade of the Internet. It works as: a mailing list, a discussion forum, a long-form chat room.

About Discourse

Discourse is a Civilized Discourse Construction Kit, an 100% open-source discussion platform that is free for everyone to use and contribute to -- forever. Key mission goals:

  • A flattened, endlessly scrolling discussion, avoiding the awkardness of traditionally threaded and paginated discussion, while allowing replies to be expanded in place for additional context.

  • A user trust system that grants users additional rights to assist in moderating the forum as they participate in good faith over time. The goal is for the forum to be nearly self-moderating in the absence of any formal moderators, although excellent moderators accelerate the process greatly.

  • An advanced JavaScript app which runs in modern browsers and works identically on desktop and tablet, without the need for a native app.

  • A contemporary, robust technology stack, free of legacy PHP and MySQL constraints limiting developers and administrators.

The Discourse team wishes to foster an active community of contributors, all of whom commit to delivering this continued vision, ensuring that free, unfettered online discussion can grow and thrive in an Internet age dominated by micro-blogging, and diminishing attention spans. Online discussion belongs to all of us, not just huge corporate websites.

This vision translates to the following functional commitments:

  1. Support only modern browsers on the desktop:
    • Internet Explorer 9.0 (may not be fully functional), 10.0+
    • Firefox 16+
    • Google Chrome 23+
    • Safari 5+
  2. Support the latest generation of tablets, 7" or larger
    • iPad 2+
    • Android 4.1+
    • Windows 8
  3. Deliver support for the latest generation of small screen mobile/smartphones as soon as possible:
    • Windows Phone 8
    • iOS 5+
    • Android 4.0+

Expertise

Discourse is built from the following open source components:

  • Ruby on Rails - Our back end API is a Rails app. It responds to requests RESTfully and responds in JSON.
  • Ember.js - Our front end is an Ember.js app that communicates with the Rails API.
  • PostgreSQL - Our main data store is in Postgres.
  • Redis - We use Redis for our job queue, rate limiting, as a cache and for transient data.
178 questions
4
votes
1 answer

How can I update topic content using Discourse API?

I have tried to use PUT /t/:id to update topic content with no effect. https://github.com/discourse/discourse_api/blob/master/lib/discourse_api/api/topics.rb Seems there is no way to update the content using API. Am I missing anything?
XY L
  • 25,431
  • 14
  • 84
  • 143
4
votes
3 answers

Detect URL change and grab URL in EmberJS (using Discourse)

I'm using Discourse (http://www.discourse.org/), which is built on EmberJS, and trying to observe any time the URL changes, e.g. when opening a new topic. I've seen the answer for observing the currentPath, for example here: Detect route transitions…
kaptron
  • 477
  • 5
  • 12
3
votes
1 answer

Rails: What does calling ActionController::Parameters#permit() achieve when not using the object returned by it?

I understand that calling params.permit(:foo) creates a new ActionController::Parameters instance with :foo whitelisted so that you can instantiate a model with it. But why does the following code in the Discourse CMS call it without using its…
Samuel Katz
  • 24,066
  • 8
  • 71
  • 57
3
votes
0 answers

Discourse-Mobile Execution for failed task ':react-native-firebase:compileDebugJavaWithJavac'

On a fresh clone of Discourse Mobile from their GitHub repository I come across this error when running "react-native run-android". This application seems to work fine on IOS, but has this issue on Android. I have already tried messing with…
Emmett Deen
  • 661
  • 5
  • 17
3
votes
0 answers

Logster displaying empty log messages

I'm using logster gem to display logs. Everything is working fine except that no log messages are being displayed. Can anyone help me with this problem? In the network tab in my browser console, I can see that the GET request at…
kcsujeet
  • 465
  • 2
  • 8
3
votes
0 answers

delete files from Google Drive Service account with the google drive gem

We created a synchronizer plugin for discourse and it should synchronize backups to the google drive service account. In order to keep the admin's google drive account clutterfree, we built a method at the end of the synchronizer, that is called…
3
votes
2 answers

Discourse with sendgrid smtp: [Sender] 550 Unauthenticated senders not allowed

I have looked through every single bit of documentation I can find on this matter, and cannot figure this out. There must be people out there using Sendgrid as SMTP for discourse blogs, but I cannot figure out how. Here's my app.yml setup: env: …
j_d
  • 2,818
  • 9
  • 50
  • 91
3
votes
1 answer

Is there any Ember event similar to `onload`

I want to execute JavaScript when all content (e.g. images) has been loaded in my Ember application. I already tried using didInsertElement() and didRender() hooks, but it looks like they do not wait for background images to load. Here's what my…
Aman Jagga
  • 301
  • 5
  • 15
3
votes
1 answer

Modify method in Ember Component

In the Discourse I want to modify method _dock. The modifying code will be placed in plugin. Here's short snippet from that file: export default Ember.Component.extend({ elementId: 'topic-progress-wrapper', classNameBindings: ['docked',…
megas
  • 21,401
  • 12
  • 79
  • 130
3
votes
2 answers

Failed to connect to github.com port 443: Connection refused, Failed to Bootstrap, Discourse Docker

Whilst running my ./launcher bootstrap app command from /var/docker on a local installation of Discourse, I get this error. fatal: unable to access 'https://github.com/SamSaffron/pups.git/': Failed to connect to github.com port 443: Connection…
Jonathan
  • 10,936
  • 8
  • 64
  • 79
3
votes
2 answers

Creating a frame redirect causes Chrome to throw X-Frame-Options error

Refused to display 'http://sotaexchange.cloudapp.net/' in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'. I redirect my domain sotaexchange.com to a Discourse forum but get the above error. If I switch it to an HTTP redirect there is no…
PW Kad
  • 14,953
  • 7
  • 49
  • 82
3
votes
1 answer

How do I configure DATABASE_URL to add a list of host_names to database.yml on heroku?

Heroku generates database.yml from the DATABASE_URL environment variable like so: https://gist.github.com/liliakai/c161ad5704be04e88999 I'd like the resulting database.yml to include the line host_names: - my.customdomain.com How would I encode…
liliakai
  • 602
  • 7
  • 7
3
votes
2 answers

Discourse - Ruby 2.0 / Rails 4?

I know this is not the right type of question for Stack Overflow (please forgive me), but I've spent hours trying to get Discourse to run on my machine. It was working before, but I upgraded to Ruby 2.0 and Rails 4 and now I simply can't get it…
Emil L
  • 51
  • 1
  • 3
2
votes
1 answer

can't access application on port 80

I have Discours installed. It runs on Docker. It is running on port 80 and 443. But when I access my domain www.devplace.be, it can't access the server. The domain is pointed to the server (A record with the correct IP address). What am I doing…
Stijn Leenknegt
  • 1,317
  • 4
  • 12
  • 22
2
votes
0 answers

Are there any ways to declare AMP on besides the rel = "amphtml" link on Discourse

Problem: I use Discourse as a blog. I built an AMP version but could not declare AMP in the head. Theme editor Only one fixed link can be inserted before Or use javascript to add after the page is loaded, but Google Bot doesn't crawl it. So? Are…
bcat95
  • 29
  • 1
  • 3
1
2
3
11 12