From bf52d80e0f19a48d4621f74e9c48256d88305726 Mon Sep 17 00:00:00 2001 From: Ryan Barrett Date: Mon, 15 Apr 2024 19:41:22 -0700 Subject: [PATCH] add protocol logo to user page activities and followers fixes #939 also drop page size from 30 to 20 --- models.py | 2 +- templates/_followers.html | 3 +++ templates/activities.html | 3 +++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/models.py b/models.py index b4061cc..5b040d0 100644 --- a/models.py +++ b/models.py @@ -37,7 +37,7 @@ PROTOCOLS = {'ostatus': None} # 2048 bits makes tests slow, so use 1024 for them KEY_BITS = 1024 if DEBUG else 2048 -PAGE_SIZE = 30 +PAGE_SIZE = 20 # auto delete old objects of these types via the Object.expire property # https://cloud.google.com/datastore/docs/ttl diff --git a/templates/_followers.html b/templates/_followers.html index 041a71c..77fe0d6 100644 --- a/templates/_followers.html +++ b/templates/_followers.html @@ -5,6 +5,9 @@
  • {% with url=f.user.web_url(), user_as1=f.user.obj.as1 or {} %} + {% with picture=util.get_url(user_as1, 'icon') or util.get_url(user_as1, 'image') %} {% if picture %} diff --git a/templates/activities.html b/templates/activities.html index 2decd7c..8031c9d 100644 --- a/templates/activities.html +++ b/templates/activities.html @@ -3,6 +3,9 @@ {% for obj in objects %}