~fabrixxm/activist

182941bdbadd6da18bc6321a1b027f8f0d323be0 — fabrixxm a month ago 3d96f93
models: order object's replies by 'published'
1 files changed, 1 insertions(+), 1 deletions(-)

M activist/db/models.py
M activist/db/models.py => activist/db/models.py +1 -1
@@ 46,7 46,7 @@ class Object(Base):

    def replies(self, recursive=False) -> QueryExecutor:
        # TODO: get replies recursively
        return Object.query().select().where(inReplyTo = self.id)
        return Object.query().select().where(inReplyTo = self.id).order_by('published ASC')

    # Activity https://www.w3.org/TR/activitystreams-vocabulary/#dfn-activity
    @fk('Object')