This commit is contained in:
Thomas Sileo 2018-07-22 12:53:09 +02:00
parent 42466ddfba
commit fcf9524ac0
2 changed files with 4 additions and 1 deletions

View file

@ -117,6 +117,7 @@ def process_new_activity(self, iri: str) -> None:
) )
log.info(f"new activity {iri} processed") log.info(f"new activity {iri} processed")
if not should_delete:
cache_actor.delay(iri) cache_actor.delay(iri)
except (ActivityGoneError, ActivityNotFoundError): except (ActivityGoneError, ActivityNotFoundError):
log.exception(f"dropping activity {iri}, skip processing") log.exception(f"dropping activity {iri}, skip processing")

View file

@ -1,4 +1,5 @@
{% macro display_actor_inline(follower, size=50) -%} {% 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;"> <a class="actor-box" href="{{follower | url_or_id | get_url }}" style="clear:both;">
<span style="float:left;padding-right:15px;"> <span style="float:left;padding-right:15px;">
{% if not follower.icon %} {% if not follower.icon %}
@ -11,6 +12,7 @@
<small class="lcolor">@{{ follower.preferredUsername }}@{{ follower | url_or_id | get_url | domain }}</small> <small class="lcolor">@{{ follower.preferredUsername }}@{{ follower | url_or_id | get_url | domain }}</small>
</div> </div>
</a> </a>
{% endif %}
{%- endmacro %} {%- endmacro %}