mirror of
https://git.sr.ht/~tsileo/microblog.pub
synced 2024-12-22 13:14:28 +00:00
Tweaks
This commit is contained in:
parent
42466ddfba
commit
fcf9524ac0
2 changed files with 4 additions and 1 deletions
3
tasks.py
3
tasks.py
|
@ -117,7 +117,8 @@ def process_new_activity(self, iri: str) -> None:
|
|||
)
|
||||
|
||||
log.info(f"new activity {iri} processed")
|
||||
cache_actor.delay(iri)
|
||||
if not should_delete:
|
||||
cache_actor.delay(iri)
|
||||
except (ActivityGoneError, ActivityNotFoundError):
|
||||
log.exception(f"dropping activity {iri}, skip processing")
|
||||
except Exception as err:
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
{% macro display_actor_inline(follower, size=50) -%}
|
||||
{% if follower and follower.id %}
|
||||
<a class="actor-box" href="{{follower | url_or_id | get_url }}" style="clear:both;">
|
||||
<span style="float:left;padding-right:15px;">
|
||||
{% if not follower.icon %}
|
||||
|
@ -11,6 +12,7 @@
|
|||
<small class="lcolor">@{{ follower.preferredUsername }}@{{ follower | url_or_id | get_url | domain }}</small>
|
||||
</div>
|
||||
</a>
|
||||
{% endif %}
|
||||
{%- endmacro %}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue