mirror of
https://git.sr.ht/~tsileo/microblog.pub
synced 2024-11-15 03:04:28 +00:00
Tweaks
This commit is contained in:
parent
42466ddfba
commit
fcf9524ac0
2 changed files with 4 additions and 1 deletions
1
tasks.py
1
tasks.py
|
@ -117,6 +117,7 @@ def process_new_activity(self, iri: str) -> None:
|
|||
)
|
||||
|
||||
log.info(f"new activity {iri} processed")
|
||||
if not should_delete:
|
||||
cache_actor.delay(iri)
|
||||
except (ActivityGoneError, ActivityNotFoundError):
|
||||
log.exception(f"dropping activity {iri}, skip processing")
|
||||
|
|
|
@ -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