Meneame / meneame.net

Source code for the social aggregator Menéame (this is now the central repository) https://www.meneame.net
GNU Affero General Public License v3.0
47 stars 17 forks source link

What is the difference self.sub_karma / self.karma? #10

Open evgip opened 5 years ago

evgip commented 5 years ago

I see that the data is taken from different tables. One karma - table links (karma), but sub_karma - table sub_statuses. Accordingly, under the post, the karma is shown differently on the central page of the site and in the sub.

{% if self.status == 'published' && self.sub_karma > 0 %}
     {{ self.sub_karma|intval }}
{% else %}
     {{ self.karma|intval }}
 {% endif %}