Quantcast
Channel: Discourse Meta - Latest topics
Viewing all 60707 articles
Browse latest View live

What occurs when a private message topic is marked as unlisted?

$
0
0

Dean Taylor wrote:

Can anybody point me at reference documentation / spec for the marking a topic as "unlisted"?

For both public topics and private messages...
What exactly does unlisted do?

  • Not display topics on generally on latest list and in categories?
  • What about for those people involved in the topic already?
  • Do the existing users involved in the topic get notifications if another member posts a reply or "likes"?
  • Are emails prevented?
  • Do topics continue to be listed under the users profile?
  • Do users get told a topic has been made unlisted / listed again?
  • Does it do anything different for private messages?

Thanks.

Posts: 3

Participants: 2

Read full topic


Submit Link (Similar to Reddit or Hacker News)

Opera 12 login error

Discourse Architecture . Client and Server?

$
0
0

Jens wrote:

Hello,

first of all, discourse is great!

However I have a question. Looking at the source (https://github.com/discourse/discourse), I was not able to find a clean seperation (as I would have expected it), between the client and the server ( for example like a directory with "server" and one with "client). Or am I missing here something completely?

What I am looking for is the code for the "Client" side. Where can I find this code, is the only the JS Stuff?

And one architectural question: The code that renders the "Base HTML Page (Containing the JS/CSS Scriptfiles, Preloade-Store, HTML), do you consider this as a server component or is this a client component? Where can I find this code?

Dont know if I manage it , but i would be interested to see, if this can be easyly implemented/ported to another proramming language to directly and "fully" embedd discourse into another application.

Thanks very much!

Posts: 4

Participants: 3

Read full topic

Watch category automatically

$
0
0

suttilak wrote:

In my market I need to set all new users to 'Watch' New feature category automatically after the registration, So if some feature are updated or some category are changed I can let them no and make sure that all users are still on track

How can I setup this kind of functionality ?

Thank you for advance smile

Posts: 1

Participants: 1

Read full topic

Another issue with user activation?

$
0
0

Balázs Nagy wrote:

When you register but don't act on user activation email, the only way to solve the issue by logging in to the forum and request a new activation email, as it's well defined in SessionController#create. However, the appropriate response handler (SessionController#not_activated) returns user email only (both versions, where the activation email is sent and current one).

Now when people log in, they can use their local username or email address. If you log in with your email address just to realize you haven't activated your account, the javascript side will think your username is your email address.

I don't know how deep this rabbit hole is, but the first line where it fails is rails router, where the constraint is the username should consist of alphanumeric characters or underscores only.

I think the easiest fix would be to send username along with the email addresses in SessionController#not_activated.

Posts: 3

Participants: 2

Read full topic

Onebox - Github - API Authentication & pull request and build status

$
0
0

lid wrote:

Github authenticated api requests

Onebox when using the github api to fetch information about a commit or a pull request
is currently using unauthenticated request.
While I was developing and testing new pull request functionality. I quickly reached the 60 requests limit per hour.

So I implemented authentication for github api requests.
the method and credentials can be passed using the Onebox.options

Two authentication methods are supported
- oauth token
- username and password (not recommended)

Onebox.options ={:GithubPullRequestOnebox => {
                                :github_auth_token => "<token>",
                                :github_auth_user  => "<user>",
                                :github_auth_pass  => "<pass>",
                                :github_auth_method =>:oauth, # :basic | :oauth | nil

                                :get_build_status  => true
                                }
}

Two authentication methods are supported
- oauth token
- username and password (not recommended)

Generating a github oauth token for an application

oauth is the recommended way since you do not expose your password, and full privileges.and you can generate one without any scopes. if you only use it for public repositories
https://github.com/settings/tokens/new

Show pull status and build status,

When this is activated in the box options it will make an additional request to get the build status.

Posts: 1

Participants: 1

Read full topic

GPG signed emails

$
0
0

Steven wrote:

My overly security conscious group is looking for the emails that are sent from discourse to be GPG signed by discourse. Not encrypted emails but signed. Over half of our group primarily interacts with discourse via email (they are old school mailing list people)

The admin would generate a private GPG key specifically for discourse, either by a online generator in discourse or uploading the key to the settings. The admin then could enabled the signing outgoing emails with the discourse private GPG key. These messages would not be encrypted but would have a validation signature appended to the bottom of the email.

I don't know how many other groups would need or even want this feature.
I thought I would put it out there incase others would be interested.

Posts: 3

Participants: 3

Read full topic


After 1.1.0.beta3 upgrade emoji smilies not working

$
0
0

The long version of me wrote:

After the 1.1.0.beta3 upgrade smiles are not working. Composer is not loading any smilies and after post submission they are just simple textual smilies. Plugin is enabled and everything worked nicely before the upgrade.

Posts: 4

Participants: 2

Read full topic

Youtube embed size

Script to run a transifex yml through aspell to correct spelling mistakes

$
0
0

foobar wrote:

I'm sharing this script that runs a transifex yml through aspell. I thought I'd share it in case it is useful to this community. It was to me.

import yaml
import sys
import os


LANG = 'ca'

stream = open(sys.argv[1], 'r')
dic = yaml.load(stream)
stream.close()
save_counter = 0


def save(force=False):
    global save_counter
    save_counter += 1
    if not force and save_counter % 10 != 0:
        return

    f = open(sys.argv[1] + '-out', 'w')
    print >>f, yaml.dump(dic, allow_unicode=True)
    f.close()


def fix(dic):
    if dic is None: return
    for k, v in dic.iteritems():
        if isinstance(v, str) or isinstance(v, unicode):
            fix_string(dic, k, v)
        else:
            fix(v)


def fix_string(dic, key, s):
    f = open('tmp.txt', 'w')
    print >>f, s.encode('utf-8'),
    f.close()

    os.system('aspell -l ' + LANG + ' -c tmp.txt --encoding=utf-8')

    f = open('tmp.txt', 'r')
    value = f.read()
    f.close()

    value = value.decode('utf-8')
    dic[key] = value
    save()

fix(dic)
save(force=True)

Posts: 1

Participants: 1

Read full topic

How to localize discourse

$
0
0

CP9 wrote:

I want to localize discourse , so that I can get a chinese site.

I know which file I need to amend , however, I can not find the place where my discourse code stay in.

at the end, I had the second question that what if I at last find the location of the file, and update it, then Do I need checkout to a new branch or stay in master, commit my effort and and push to origin?

Posts: 1

Participants: 1

Read full topic

Get a bug when I create a category

$
0
0

CP9 wrote:

When I create a cate, system tell a there is a error.

the log shows

   ArgumentError (unknown group)

Posts: 3

Participants: 2

Read full topic

Is Discourse being translated automatically?

$
0
0

Tudor Vedeanu wrote:

On Transifex the Romanian translation is only 3% ready. On my Discourse forum, to my surprise there is a fully-translated Romanian language pack which apparently has been automatically generated. My questions are:

  • Where this automatic translation comes from?
  • Can it be updated? A few strings are missing (for example: [ro.about.simple_title] in the hamburger menu).
  • Can it be merged with the Transifex one? The automatically-translated Romanian version doesn't always sound very good but it's better than nothing and I think it would be easier to update it rather than starting from scratch.

Posts: 4

Participants: 2

Read full topic

Filed to install Discource in Ubuntu14.04: docker problems

$
0
0

cosy wrote:

Tried to install Discourses through Docker with this article http://www.howtoinstalldiscourse.com/how-to-install-discourse-on-ubuntu/:
Have an error on Launch Discourse step (./launcher bootstrap app , ./launcher start app)

Please help!

OS: Ubuntu Studio 14.04
docker --version: Docker version 1.2.0, build fa7b24f

  cosy@cosy-HP-EliteBook-8540w:/var/docker$ ./launcher bootstrap app
    2014/09/24 15:50:59 Get http:///var/run/docker.sock/v1.14/info: dial unix /var/run/docker.sock: permission denied
    Cannot connect to the docker daemon - verify it is running and you have access
    cosy@cosy-HP-EliteBook-8540w:/var/docker$ sudo ./launcher bootstrap app
    WARNING: No swap limit support
    Calculated ENV: -e LANG=en_US.UTF-8 -e RAILS_ENV=production -e UNICORN_WORKERS=3 -e UNICORN_SIDEKIQS=1 -e RUBY_GC_MALLOC_LIMIT=40000000 -e RUBY_HEAP_MIN_SLOTS=800000 -e DISCOURSE_DB_SOCKET=/var/run/postgresql -e DISCOURSE_DB_HOST= -e DISCOURSE_DB_PORT= -e HOME=/root -e DISCOURSE_DEVELOPER_EMAILS=me@example.com -e DISCOURSE_HOSTNAME=discourse.example.com -e DISCOURSE_SMTP_ADDRESS=smtp.example.com
    cd /pups && git pull && /pups/bin/pups --stdin
    From https://github.com/SamSaffron/pups
       f7a125b..ac9bdf8  master     -> origin/master
    Updating f7a125b..ac9bdf8
    Fast-forward
     README.md          |  2 +-
     lib/pups/config.rb | 14 +++++++++++++-
     2 files changed, 14 insertions(+), 2 deletions(-)
    I, [2014-09-24T12:51:14.130187 #43]  INFO -- : Loading --stdin
    I, [2014-09-24T12:51:14.134607 #43]  INFO -- : > mkdir -p /shared/postgres_run
    I, [2014-09-24T12:51:14.139001 #43]  INFO -- :
    I, [2014-09-24T12:51:14.139448 #43]  INFO -- : > chown postgres:postgres /shared/postgres_run
    I, [2014-09-24T12:51:14.143742 #43]  INFO -- :
    I, [2014-09-24T12:51:14.144293 #43]  INFO -- : > chmod 775 /shared/postgres_run
    I, [2014-09-24T12:51:14.148718 #43]  INFO -- :
    I, [2014-09-24T12:51:14.149481 #43]  INFO -- : > rm -fr /var/run/postgresql
    I, [2014-09-24T12:51:14.154116 #43]  INFO -- :
    I, [2014-09-24T12:51:14.154822 #43]  INFO -- : > ln -s /shared/postgres_run /var/run/postgresql
    I, [2014-09-24T12:51:14.159223 #43]  INFO -- :
    I, [2014-09-24T12:51:14.160482 #43]  INFO -- : > socat /dev/null UNIX-CONNECT:/shared/postgres_run/.s.PGSQL.5432 || exit 0 && echo postgres already running stop container ; exit 1
    2014/09/24 12:51:14 socat[51] E connect(4, AF=1 "/shared/postgres_run/.s.PGSQL.5432", 36): No such file or directory
    I, [2014-09-24T12:51:14.176709 #43]  INFO -- :
    I, [2014-09-24T12:51:14.177194 #43]  INFO -- : > rm -fr /shared/postgres_run/.s*
    I, [2014-09-24T12:51:14.182002 #43]  INFO -- :
    I, [2014-09-24T12:51:14.182793 #43]  INFO -- : > rm -fr /shared/postgres_run/*.pid
    I, [2014-09-24T12:51:14.186791 #43]  INFO -- :
    I, [2014-09-24T12:51:14.195268 #43]  INFO -- : File > /etc/service/postgres/run  chmod: +x
    I, [2014-09-24T12:51:14.203983 #43]  INFO -- : File > /root/upgrade_postgres  chmod: +x
    I, [2014-09-24T12:51:14.205687 #43]  INFO -- : > chown -R root /var/lib/postgresql/9.3/main
    I, [2014-09-24T12:51:14.674964 #43]  INFO -- :
    I, [2014-09-24T12:51:14.675210 #43]  INFO -- : > [ ! -e /shared/postgres_data ] && install -d -m 0755 -o postgres -g postgres /shared/postgres_data && sudo -E -u postgres /usr/lib/postgresql/9.3/bin/initdb -D /shared/postgres_data || exit 0
    I, [2014-09-24T12:51:14.678337 #43]  INFO -- :
    I, [2014-09-24T12:51:14.678486 #43]  INFO -- : > chown -R postgres:postgres /shared/postgres_data
    I, [2014-09-24T12:51:14.683034 #43]  INFO -- :
    I, [2014-09-24T12:51:14.683239 #43]  INFO -- : > chown -R postgres:postgres /var/run/postgresql
    I, [2014-09-24T12:51:14.687146 #43]  INFO -- :
    I, [2014-09-24T12:51:14.688147 #43]  INFO -- : > /root/upgrade_postgres
    cat: /shared/postgres_data/PG_VERSION: No such file or directory
    /root/upgrade_postgres: line 2: [: 9.2: unary operator expected
    I, [2014-09-24T12:51:14.698314 #43]  INFO -- :
    I, [2014-09-24T12:51:14.698705 #43]  INFO -- : > rm /root/upgrade_postgres
    I, [2014-09-24T12:51:14.701577 #43]  INFO -- :
    I, [2014-09-24T12:51:14.703295 #43]  INFO -- : Replacing data_directory = '/var/lib/postgresql/9.3/main' with data_directory = '/shared/postgres_data' in /etc/postgresql/9.3/main/postgresql.conf
    I, [2014-09-24T12:51:14.704076 #43]  INFO -- : Replacing (?-mix:#?listen_addresses *=.*) with listen_addresses = '*' in /etc/postgresql/9.3/main/postgresql.conf
    I, [2014-09-24T12:51:14.704511 #43]  INFO -- : Replacing (?-mix:#?listen_addresses *=.*) with listen_addresses = '*' in /etc/postgresql/9.3/main/postgresql.conf
    I, [2014-09-24T12:51:14.704993 #43]  INFO -- : Replacing (?-mix:#?synchronous_commit *=.*) with synchronous_commit = $db_synchronous_commit in /etc/postgresql/9.3/main/postgresql.conf
    I, [2014-09-24T12:51:14.705517 #43]  INFO -- : Replacing (?-mix:#?shared_buffers *=.*) with shared_buffers = $db_shared_buffers in /etc/postgresql/9.3/main/postgresql.conf
    I, [2014-09-24T12:51:14.706063 #43]  INFO -- : Replacing (?-mix:#?work_mem *=.*) with work_mem = $db_work_mem in /etc/postgresql/9.3/main/postgresql.conf
    I, [2014-09-24T12:51:14.706683 #43]  INFO -- : Replacing (?-mix:#?default_text_search_config *=.*) with default_text_search_config = '$db_default_text_search_config' in /etc/postgresql/9.3/main/postgresql.conf
    I, [2014-09-24T12:51:14.707527 #43]  INFO -- : > install -d -m 0755 -o postgres -g postgres /shared/postgres_backup
    I, [2014-09-24T12:51:14.712618 #43]  INFO -- :
    I, [2014-09-24T12:51:14.712992 #43]  INFO -- : Replacing (?-mix:#?max_wal_senders *=.*) with max_wal_senders = 4 in /etc/postgresql/9.3/main/postgresql.conf
    I, [2014-09-24T12:51:14.713641 #43]  INFO -- : Replacing (?-mix:#?wal_level *=.*) with wal_level = hot_standby in /etc/postgresql/9.3/main/postgresql.conf
    I, [2014-09-24T12:51:14.714491 #43]  INFO -- : Replacing (?-mix:^#local +replication +postgres +peer$) with local replication postgres  peer in /etc/postgresql/9.3/main/pg_hba.conf
    I, [2014-09-24T12:51:14.715105 #43]  INFO -- : Replacing (?-mix:^host.*all.*all.*127.*$) with host all all 0.0.0.0/0 md5 in /etc/postgresql/9.3/main/pg_hba.conf
    I, [2014-09-24T12:51:14.715668 #43]  INFO -- : > su - postgres -c '/usr/lib/postgresql/9.3/bin/postmaster -D /etc/postgresql/9.3/main'
    I, [2014-09-24T12:51:14.717909 #43]  INFO -- : > sleep 5
    2014-09-24 12:51:14 UTC FATAL:  "/shared/postgres_data" is not a valid data directory
    2014-09-24 12:51:14 UTC DETAIL:  File "/shared/postgres_data/PG_VERSION" is missing.
    I, [2014-09-24T12:51:19.721574 #43]  INFO -- :
    I, [2014-09-24T12:51:19.722366 #43]  INFO -- : > su postgres -c 'createdb discourse' || true
    createdb: could not connect to database template1: could not connect to server: No such file or directory
    	Is the server running locally and accepting
    	connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
    I, [2014-09-24T12:51:19.808929 #43]  INFO -- :
    I, [2014-09-24T12:51:19.809564 #43]  INFO -- : > su postgres -c 'psql discourse -c "create user discourse;"' || true
    psql: could not connect to server: No such file or directory
    	Is the server running locally and accepting
    	connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
    I, [2014-09-24T12:51:19.894773 #43]  INFO -- :
    I, [2014-09-24T12:51:19.895610 #43]  INFO -- : > su postgres -c 'psql discourse -c "grant all privileges on database discourse to discourse;"' || true
    psql: could not connect to server: No such file or directory
    	Is the server running locally and accepting
    	connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
    I, [2014-09-24T12:51:19.963502 #43]  INFO -- :
    I, [2014-09-24T12:51:19.974952 #43]  INFO -- : > su postgres -c 'psql discourse -c "alter schema public owner to discourse;"'
    psql: could not connect to server: No such file or directory
    	Is the server running locally and accepting
    	connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
    I, [2014-09-24T12:51:20.045469 #43]  INFO -- :


    FAILED
    --------------------
    RuntimeError: su postgres -c 'psql discourse -c "alter schema public owner to discourse;"' failed with return #<Process::Status: pid 96 exit 2>
    Location of failure: /pups/lib/pups/exec_command.rb:85:in `spawn'
    exec failed with the params "su postgres -c 'psql discourse -c \"alter schema public owner to discourse;\"'"
    b0ce6def79bdcdb9bf418f54fb8f2c77ada62b7cc6d2ca99688ae83c7cf992a4
    FAILED TO BOOTSTRAP

Posts: 2

Participants: 2

Read full topic


Is js.post.controls.unhide a permanent or temporary action?

$
0
0

Anton wrote:

Unhide under the js.post.controls.unhide key - does it unhide permanently or one-time in the current session?

Posts: 2

Participants: 2

Read full topic

Site not loading

$
0
0

bobzhai wrote:

After the 1.1.0.beta3, my site stop responding.
I refresh the page, nothing show up.
Reboot digital ocean, and my site is still not loading.
you can visit it: www.dgoverc.com

Posts: 5

Participants: 3

Read full topic

Is it possible to link to specific revision of a post?

$
0
0

Tobias Eigen wrote:

I just made some huge changes to a wiki post, and would like to write a post explaining my changes and linking to a comparison of the original to new revision. I don't see how that can be done. Any ideas?

Posts: 3

Participants: 2

Read full topic

Static HTML Page - What are the Functions?

$
0
0

Jens wrote:

Hello,

The ember.js Client seems to be embedded in a statically rendered page. What is the function of this static HTML page besides:

1.) Loading/Bootstrapping the ember.js Client
2.) Providing basic HTML Content for Search enginses

In Other words, Does the Clilent depend on this basic HTML Content to be included in the Ember.JS Client or does the Ember.JS client load all data from the "PreloadeStore"? What I mean is, that in this static html page, there are some (not all) of HTML Comments (or the list of topics) rendered as static HTML. Is this "standard HTML" used by the ember.js Client or is this only embedded as fallback for searchengines?

Could I therefore completely remove all static content and only keep the Preloadstore and the ember.js Javascriptfiles and everything still would be working?

thanks!

Posts: 1

Participants: 1

Read full topic

Stuck on updating?

$
0
0

Nathan Rijksen wrote:

Hi, I just started the update to 1.0 and am seemingly getting stuck on the ./launcher rebuild app step.

It's been showing the following for about 30 minutes now:

I, [2014-09-24T16:10:05.899252 #45]  INFO -- : File > /usr/local/bin/discourse  chmod: +x
I, [2014-09-24T16:10:05.929367 #45]  INFO -- : File > /usr/local/bin/rails  chmod: +x
I, [2014-09-24T16:10:05.962112 #45]  INFO -- : File > /usr/local/bin/rake  chmod: +x
I, [2014-09-24T16:10:05.993954 #45]  INFO -- : File > /etc/update-motd.d/10-web  chmod: +x
I, [2014-09-24T16:10:06.004134 #45]  INFO -- : File > /etc/logrotate.d/rails  chmod:
I, [2014-09-24T16:10:06.004728 #45]  INFO -- : Replacing weekly with daily in /etc/logrotate.d/nginx
I, [2014-09-24T16:10:06.006186 #45]  INFO -- : Replacing 52 with 14 in /etc/logrotate.d/nginx
I, [2014-09-24T16:10:06.024436 #45]  INFO -- : File > /etc/runit/1.d/00-ensure-links  chmod: +x
[175] 24 Sep 16:22:58.031 * 1 changes in 900 seconds. Saving...
[175] 24 Sep 16:22:58.033 * Background saving started by pid 666
[666] 24 Sep 16:22:58.769 * DB saved on disk
[666] 24 Sep 16:22:58.770 * RDB: 29 MB of memory used by copy-on-write
[175] 24 Sep 16:22:58.838 * Background saving terminated with success

Note that the backup size of the forums in question are only about 35mb, so I don't see why it would need to take that long.

Can anyone advice on what steps to take next? I'd attempt to interrupt and retry the rebuild but dont wish to break anything.

Full rebuild log: http://pastebin.com/cqCUjzNW

Posts: 2

Participants: 1

Read full topic

Viewing all 60707 articles
Browse latest View live




Latest Images