Qual è la differenza tra reply_count e post_count?

Ciao a tutti, sto cercando di ottenere il numero di argomenti e il numero di risposte per l’utente attualmente connesso, quindi vorrei controllare /session/current.json per ottenerli entrambi.

topic_count restituisce ciò che mi aspetto, mentre reply_count è molto diverso da post_count in /u/[username]/summary.json. All’inizio pensavo che reply_count potesse semplicemente escludere i post che crei quando avvii un nuovo argomento, ma nel mio caso i due conteggi sono rispettivamente 173 e 410, mentre topic_count è 78. Quindi, se fosse stato così, reply_count avrebbe dovuto essere 332.

Qualcuno potrebbe spiegare la differenza tra queste due metriche e quale dovrei utilizzare per ottenere il conteggio effettivo delle risposte (che definisco come totale dei post meno gli argomenti avviati)?

Grazie!

1 Mi Piace

The value of reply_count you get from /session/current.json is the count of posts the user has created in other users’ topics. To get the total number of posts a user has created, excluding the first post in each topic, use the post_count value from the user_summary section of /u/<username>/summary.json.

4 Mi Piace

Thanks, that makes sense then!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.