Hey.
I was wondering if there’s any way to allow all users to see users post_count when using the API call /users/{username}.json without having to modify the git repo?
Is there something like a setting or plugin for this?
Hey.
I was wondering if there’s any way to allow all users to see users post_count when using the API call /users/{username}.json without having to modify the git repo?
Is there something like a setting or plugin for this?
You can retreive it from https://meta.discourse.org/u/Wille.json under
"post_count":0
Your topic count is 1.
Sure, that works when looking up the profile of ones own user, but I would like the post_count to be public to everyone, preferably even to anonymous browsers.
If I look up https://meta.discourse.org/u/Codinghorror.json there’s no post_count there, just the same as with https://meta.discourse.org/users/Codinghorror.json
Aggiornamento: non solo per visualizzare post_count, ma per poter configurare l’API. È possibile?
Modifica: Dimenticate, forse l’ho trovata in Impostazioni → Utente → campi personalizzati pubblici dell’utente
Modifica 2: Dimenticate il precedente “dimenticate”, aggiungere ‘post_count’ lì non ha aiutato. Esiste una qualche sintassi del tipo user@user_fields@post_count?
Modifica 3: Sembra non funzionare nemmeno con i campi creati su misura. Ho aggiunto “ID Discord” sia in Personalizza → Campi utente che in Impostazioni → Utente → campi personalizzati pubblici dell’utente, ma non appare nemmeno nel mio JSON /users/admin.json (da amministratore) quando sono connesso come amministratore.
Ne sono molto grato!
C’è una logica o un criterio nell’API in modo da sapere dove cercare la prossima volta per qualcosa in futuro?
Ad esempio, non riesco a trovare alcun riferimento a summary.json nella documentazione dell’API.
Questo argomento potrebbe essere utile: Reverse engineer the Discourse API
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.