2022-06-22 13:11:22 -05:00
{% macro embed_csrf_token() %}
< input type = "hidden" name = "csrf_token" value = "{{ csrf_token }}" >
{% endmacro %}
2022-07-15 13:01:55 -05:00
{% macro embed_redirect_url(permalink_id=None) %}
< input type = "hidden" name = "redirect_url" value = "{{ request.url }}{% if permalink_id %}#{{ permalink_id }}{% endif %}" >
2022-06-22 13:11:22 -05:00
{% endmacro %}
{% macro admin_follow_button(actor) %}
< form action = "{{ request.url_for(" admin_actions_follow " ) } } " method = "POST" >
{{ embed_csrf_token() }}
{{ embed_redirect_url() }}
< input type = "hidden" name = "ap_actor_id" value = "{{ actor.ap_id }}" >
2022-07-03 15:01:47 -05:00
< input type = "submit" value = "follow" >
2022-06-22 13:11:22 -05:00
< / form >
{% endmacro %}
2022-07-15 13:01:55 -05:00
{% macro admin_like_button(ap_object_id, permalink_id) %}
2022-06-22 13:11:22 -05:00
< form action = "{{ request.url_for(" admin_actions_like " ) } } " method = "POST" >
{{ embed_csrf_token() }}
2022-07-15 13:01:55 -05:00
{{ embed_redirect_url(permalink_id) }}
2022-06-22 13:11:22 -05:00
< input type = "hidden" name = "ap_object_id" value = "{{ ap_object_id }}" >
2022-07-03 15:01:47 -05:00
< input type = "submit" value = "like" >
2022-06-22 13:11:22 -05:00
< / form >
{% endmacro %}
2022-07-15 13:01:55 -05:00
{% macro admin_bookmark_button(ap_object_id, permalink_id) %}
2022-06-26 04:09:43 -05:00
< form action = "{{ request.url_for(" admin_actions_bookmark " ) } } " method = "POST" >
{{ embed_csrf_token() }}
2022-07-15 13:01:55 -05:00
{{ embed_redirect_url(permalink_id) }}
2022-06-26 04:09:43 -05:00
< input type = "hidden" name = "ap_object_id" value = "{{ ap_object_id }}" >
2022-07-03 15:01:47 -05:00
< input type = "submit" value = "bookmark" >
2022-06-26 04:09:43 -05:00
< / form >
{% endmacro %}
2022-07-15 13:01:55 -05:00
{% macro admin_unbookmark_button(ap_object_id, permalink_id) %}
2022-06-26 04:09:43 -05:00
< form action = "{{ request.url_for(" admin_actions_unbookmark " ) } } " method = "POST" >
{{ embed_csrf_token() }}
2022-07-15 13:01:55 -05:00
{{ embed_redirect_url(permalink_id) }}
2022-06-26 04:09:43 -05:00
< input type = "hidden" name = "ap_object_id" value = "{{ ap_object_id }}" >
2022-07-03 15:01:47 -05:00
< input type = "submit" value = "unbookmark" >
2022-06-26 04:09:43 -05:00
< / form >
{% endmacro %}
2022-07-15 13:01:55 -05:00
{% macro admin_pin_button(ap_object_id, permalink_id) %}
2022-06-26 11:07:55 -05:00
< form action = "{{ request.url_for(" admin_actions_pin " ) } } " method = "POST" >
{{ embed_csrf_token() }}
2022-07-15 13:01:55 -05:00
{{ embed_redirect_url(permalink_id) }}
2022-06-26 11:07:55 -05:00
< input type = "hidden" name = "ap_object_id" value = "{{ ap_object_id }}" >
2022-07-03 15:01:47 -05:00
< input type = "submit" value = "pin" >
2022-06-26 11:07:55 -05:00
< / form >
{% endmacro %}
2022-07-15 13:01:55 -05:00
{% macro admin_unpin_button(ap_object_id, permalink_id) %}
2022-06-26 11:07:55 -05:00
< form action = "{{ request.url_for(" admin_actions_unpin " ) } } " method = "POST" >
{{ embed_csrf_token() }}
2022-07-15 13:01:55 -05:00
{{ embed_redirect_url(permalink_id) }}
2022-06-26 11:07:55 -05:00
< input type = "hidden" name = "ap_object_id" value = "{{ ap_object_id }}" >
2022-07-03 15:01:47 -05:00
< input type = "submit" value = "unpin" >
2022-06-26 11:07:55 -05:00
< / form >
{% endmacro %}
2022-07-02 03:33:20 -05:00
{% macro admin_delete_button(ap_object_id) %}
< form action = "{{ request.url_for(" admin_actions_delete " ) } } " method = "POST" onsubmit = "return confirm('Do you really want to delete this object?');" >
{{ embed_csrf_token() }}
{{ embed_redirect_url() }}
< input type = "hidden" name = "ap_object_id" value = "{{ ap_object_id }}" >
2022-07-03 15:01:47 -05:00
< input type = "submit" value = "delete" >
2022-07-02 03:33:20 -05:00
< / form >
{% endmacro %}
2022-07-15 13:01:55 -05:00
{% macro admin_announce_button(ap_object_id, disabled=False, permalink_id=None) %}
2022-06-22 13:11:22 -05:00
< form action = "{{ request.url_for(" admin_actions_announce " ) } } " method = "POST" >
{{ embed_csrf_token() }}
2022-07-15 13:01:55 -05:00
{{ embed_redirect_url(permalink_id) }}
2022-06-22 13:11:22 -05:00
< input type = "hidden" name = "ap_object_id" value = "{{ ap_object_id }}" >
2022-07-03 15:01:47 -05:00
< input type = "submit" value = "share" { % if disabled % } title = "Cannot share non-public content" disabled { % endif % } >
2022-06-22 13:11:22 -05:00
< / form >
{% endmacro %}
2022-07-15 13:01:55 -05:00
{% macro admin_undo_button(ap_object_id, action="undo", permalink_id=None) %}
2022-06-22 13:11:22 -05:00
< form action = "{{ request.url_for(" admin_actions_undo " ) } } " method = "POST" >
{{ embed_csrf_token() }}
2022-07-15 13:01:55 -05:00
{{ embed_redirect_url(permalink_id) }}
2022-06-22 13:11:22 -05:00
< input type = "hidden" name = "ap_object_id" value = "{{ ap_object_id }}" >
< input type = "submit" value = "{{ action }}" >
< / form >
{% endmacro %}
{% macro sensitive_button(permalink_id) %}
2022-07-15 13:01:55 -05:00
< form action = "{{ request.url }}#{{ permalink_id }}" method = "GET" >
2022-06-22 13:11:22 -05:00
< input type = "hidden" name = "show_sensitive" value = "{{ permalink_id }}" >
{% for k, v in request.query_params.items() %}
< input type = "hidden" name = "{{k}}" value = "{{v}}" >
{% endfor %}
2022-07-15 13:01:55 -05:00
< button type = "submit" class = "show-sensitive-btn" > display sensitive content< / button >
2022-06-22 13:11:22 -05:00
< / form >
{% endmacro %}
2022-07-17 02:05:30 -05:00
{% macro hide_sensitive_button(permalink_id) %}
< form action = "{{ request.url }}#{{ permalink_id }}" method = "GET" >
{% for k, v in request.query_params.items() %}
{% if not (k == "show_sensitive" and v == permalink_id) %}
< input type = "hidden" name = "{{k}}" value = "{{v}}" >
{% endif %}
{% endfor %}
< button type = "submit" class = "show-sensitive-btn" > hide sensitive content< / button >
< / form >
{% endmacro %}
2022-06-28 14:10:22 -05:00
{% macro show_more_button(permalink_id) %}
2022-07-15 13:01:55 -05:00
< form action = "{{ request.url }}#{{ permalink_id }}" method = "GET" >
2022-06-28 14:10:22 -05:00
< input type = "hidden" name = "show_more" value = "{{ permalink_id }}" >
{% for k, v in request.query_params.items() %}
< input type = "hidden" name = "{{k}}" value = "{{v}}" >
{% endfor %}
2022-07-15 13:01:55 -05:00
< button type = "submit" class = "show-more-btn" > show more< / button >
2022-06-28 14:10:22 -05:00
< / form >
{% endmacro %}
2022-07-17 02:05:30 -05:00
{% macro show_less_button(permalink_id) %}
< form action = "{{ request.url }}#{{ permalink_id }}" method = "GET" >
{% for k, v in request.query_params.items() %}
{% if not (k == "show_more" and v == permalink_id) %}
< input type = "hidden" name = "{{k}}" value = "{{v}}" >
{% endif %}
{% endfor %}
< button type = "submit" class = "show-more-btn" > show less< / button >
< / form >
{% endmacro %}
2022-06-28 14:10:22 -05:00
2022-06-24 04:33:05 -05:00
{% macro admin_reply_button(ap_object_id) %}
< form action = "/admin/new" method = "GET" >
< input type = "hidden" name = "in_reply_to" value = "{{ ap_object_id }}" >
2022-07-03 15:01:47 -05:00
< button type = "submit" > reply< / button >
2022-06-24 04:33:05 -05:00
< / form >
{% endmacro %}
2022-06-25 05:19:12 -05:00
{% macro admin_profile_button(ap_actor_id) %}
< form action = "{{ url_for(" admin_profile " ) } } " method = "GET" >
< input type = "hidden" name = "actor_id" value = "{{ ap_actor_id }}" >
2022-07-03 15:01:47 -05:00
< button type = "submit" > profile< / button >
2022-06-25 05:19:12 -05:00
< / form >
{% endmacro %}
2022-06-25 05:29:35 -05:00
{% macro admin_expand_button(ap_object_id) %}
< form action = "{{ url_for(" admin_object " ) } } " method = "GET" >
< input type = "hidden" name = "ap_id" value = "{{ ap_object_id }}" >
2022-07-03 15:01:47 -05:00
< button type = "submit" > expand< / button >
2022-06-25 05:29:35 -05:00
< / form >
{% endmacro %}
2022-06-28 13:10:25 -05:00
{% macro display_box_filters(route) %}
2022-07-09 01:15:33 -05:00
< nav class = "flexbox box" >
2022-07-03 15:01:47 -05:00
< ul >
< li > Filter by< / li >
2022-06-28 13:10:25 -05:00
{% for ap_type in ["Note", "Like", "Announce", "Follow"] %}
2022-07-03 15:01:47 -05:00
< li > < a href = "{{ url_for(route) }}?filter_by={{ ap_type }}" { % if request . query_params . filter_by = = ap_type % } class = "active" { % endif % } >
{{ ap_type }}
< / a >
< / li >
{% endfor %}
{% if request.query_params.filter_by %}
< li >
< a href = "{{ url_for(route) }}" > Reset filter< / a >
< / li >
{% endif %}
2022-07-09 01:15:33 -05:00
< / ul >
2022-07-03 15:01:47 -05:00
< / nav >
2022-06-28 13:10:25 -05:00
{% endmacro %}
2022-07-09 01:15:33 -05:00
{% macro display_actor(actor, actors_metadata={}, embedded=False) %}
2022-06-22 13:11:22 -05:00
{% set metadata = actors_metadata.get(actor.ap_id) %}
2022-07-09 01:15:33 -05:00
{% if not embedded %}
< div class = "ap-object" >
{% endif %}
2022-07-01 12:35:34 -05:00
< div class = "actor-box h-card p-author" >
< div class = "icon-box" >
2022-07-16 00:48:24 -05:00
< img src = "{{ actor.resized_icon_url }}" alt = "{{ actor.display_name }}'s avatar" class = "actor-icon u-photo" >
2022-06-22 13:11:22 -05:00
< / div >
2022-06-26 14:54:07 -05:00
< a href = "{{ actor.url }}" class = "u-url" style = "" >
2022-06-26 11:07:55 -05:00
< div > < strong > {{ actor.display_name | clean_html(actor) | safe }}< / strong > < / div >
2022-07-01 12:35:34 -05:00
< div class = "actor-handle p-name" > {{ actor.handle }}< / div >
2022-06-22 13:11:22 -05:00
< / a >
< / div >
2022-06-25 03:20:07 -05:00
{% if is_admin and metadata %}
2022-06-22 13:11:22 -05:00
< div >
2022-07-03 15:01:47 -05:00
< nav class = "flexbox actor-metadata" >
2022-07-09 01:15:33 -05:00
< ul >
2022-06-25 03:20:07 -05:00
{% if metadata.is_following %}
< li > already following< / li >
2022-07-03 15:01:47 -05:00
< li > {{ admin_undo_button(metadata.outbox_follow_ap_id, "unfollow")}}< / li >
2022-07-08 02:01:25 -05:00
< li > {{ admin_profile_button(actor.ap_id) }}< / li >
2022-06-25 03:20:07 -05:00
{% elif metadata.is_follow_request_sent %}
< li > follow request sent< / li >
2022-07-17 02:45:00 -05:00
< li > {{ admin_undo_button(metadata.outbox_follow_ap_id, "undo follow") }}< / li >
2022-06-22 13:11:22 -05:00
{% else %}
2022-06-25 03:20:07 -05:00
< li > {{ admin_follow_button(actor) }}< / li >
2022-06-22 13:11:22 -05:00
{% endif %}
2022-06-25 03:20:07 -05:00
{% if metadata.is_follower %}
< li > follows you< / li >
2022-07-08 02:01:25 -05:00
{% if not metadata.is_following %}
2022-07-09 01:15:33 -05:00
< li > {{ admin_profile_button(actor.ap_id) }}< / li >
2022-07-08 02:01:25 -05:00
{% endif %}
2022-07-09 01:15:33 -05:00
< / li >
2022-06-22 13:11:22 -05:00
{% endif %}
2022-07-09 01:15:33 -05:00
< / ul >
2022-06-22 13:11:22 -05:00
< / nav >
< / div >
{% endif %}
2022-07-09 01:15:33 -05:00
{% if not embedded %}
< / div >
{% endif %}
2022-06-22 13:11:22 -05:00
{% endmacro %}
2022-06-29 14:38:13 -05:00
{% macro display_og_meta(object) %}
{% if object.og_meta %}
{% for og_meta in object.og_meta %}
2022-07-01 12:35:34 -05:00
< div class = "activity-og-meta" style = "display:flex;column-gap: 20px;margin:20px 0;" >
2022-06-29 14:38:13 -05:00
{% if og_meta.image %}
< div >
2022-07-09 01:15:33 -05:00
< img src = "{{ og_meta.image | media_proxy_url }}" style = "max-width:200px;max-height:100px;" >
2022-06-29 14:38:13 -05:00
< / div >
< div >
< a href = "{{ og_meta.url }}" > {{ og_meta.title }}< / a >
< small style = "display:block;" > {{ og_meta.site_name }}< / small >
< / div >
{% endif %}
< / div >
{% endfor %}
{% endif %}
{% endmacro %}
2022-06-28 14:10:22 -05:00
{% macro display_attachments(object) %}
2022-07-17 02:05:30 -05:00
{% if object.attachments and object.sensitive and not object.permalink_id in request.query_params.getlist("show_sensitive") %}
{{ sensitive_button(object.permalink_id )}}
2022-06-28 14:10:22 -05:00
{% endif %}
2022-07-17 02:05:30 -05:00
{% if object.attachments and (not object.sensitive or (object.sensitive and object.permalink_id in request.query_params.getlist("show_sensitive"))) %}
{% if object.sensitive %}
{{ hide_sensitive_button(object.permalink_id) }}
{% endif %}
2022-06-28 14:10:22 -05:00
{% for attachment in object.attachments %}
{% if attachment.type == "Image" or (attachment | has_media_type("image")) %}
< img src = "{{ attachment.resized_url or attachment.proxied_url }}" { % if attachment . name % } alt = "{{ attachment.name }}" { % endif % } class = "attachment" >
{% elif attachment.type == "Video" or (attachment | has_media_type("video")) %}
2022-07-07 13:37:16 -05:00
< video controls preload = "metadata" src = "{{ attachment.url | media_proxy_url }}" { % if attachment . name % } title = "{{ attachment.name }}" { % endif % } class = "attachment" > < / video >
2022-06-28 14:10:22 -05:00
{% elif attachment.type == "Audio" or (attachment | has_media_type("audio")) %}
< audio controls preload = "metadata" src = "{{ attachment.url | media_proxy_url }}" { % if attachment . name % } title = "{{ attachment.name }}" { % endif % } style = "width:480px;" class = "attachment" > < / audio >
{% else %}
< a href = "{{ attachment.url | media_proxy_url }}" { % if attachment . name % } title = "{{ attachment.name }}" { % endif % } class = "attachment" > {{ attachment.url }}< / a >
{% endif %}
{% endfor %}
{% endif %}
{% endmacro %}
2022-07-14 12:05:45 -05:00
{% macro display_object(object, likes=[], shares=[], webmentions=[], expanded=False, actors_metadata={}) %}
2022-07-09 01:15:33 -05:00
{% if object.ap_type in ["Note", "Article", "Video"] %}
< div class = "ap-object {% if expanded %}ap-object-expanded {% endif %}h-entry" id = "{{ object.permalink_id }}" >
2022-07-14 12:05:45 -05:00
{{ display_actor(object.actor, actors_metadata, embedded=True) }}
2022-07-09 01:15:33 -05:00
{% if object.in_reply_to %}
< a href = "{% if is_admin %}{{ url_for(" get_lookup " ) } } ? query = {% endif % } { { object . in_reply_to } } " title = "{{ object.in_reply_to }}" class = "in-reply-to" rel = "nofollow" >
in reply to {{ object.in_reply_to|truncate(64, True) }}
< / a >
2022-07-07 14:18:20 -05:00
{% endif %}
2022-06-29 15:20:15 -05:00
2022-07-09 01:15:33 -05:00
{% if object.summary %}
< p class = "p-summary" > {{ object.summary | clean_html(object) | safe }}< / p >
{% endif %}
2022-07-17 02:05:30 -05:00
{% if object.sensitive and object.summary and object.permalink_id not in request.query_params.getlist("show_more") %}
2022-07-09 01:15:33 -05:00
{{ show_more_button(object.permalink_id) }}
{% endif %}
2022-07-17 02:05:30 -05:00
{% if not object.sensitive or (object.sensitive and object.summary and object.permalink_id in request.query_params.getlist("show_more")) %}
{% if object.sensitive and object.summary %}
{{ show_less_button(object.permalink_id) }}
{% endif %}
2022-07-09 01:15:33 -05:00
< div class = "e-content" >
{{ object.content | clean_html(object) | safe }}
< / div >
{% endif %}
{{ display_og_meta(object) }}
< div class = "activity-attachment" >
{{ display_attachments(object) }}
2022-06-29 15:20:15 -05:00
< / div >
2022-07-09 01:15:33 -05:00
< nav class = "flexbox activity-bar" >
< ul >
< li >
2022-07-19 13:43:28 -05:00
< div > < a href = "{{ object.url or object.id }}" { % if object . is_from_inbox % } rel = "nofollow" { % endif % } class = "object-permalink u-url u-uid" > permalink< / a > < / div >
2022-07-14 11:40:38 -05:00
< / li >
< li >
2022-07-15 13:16:02 -05:00
< time class = "dt-published" datetime = "{{ object.ap_published_at.replace(microsecond=0).isoformat() }}" title = "{{ object.ap_published_at.replace(microsecond=0).isoformat() }}" > {{ object.ap_published_at | timeago }}< / time >
2022-07-09 01:15:33 -05:00
< / li >
{% if is_admin %}
< li >
{{ object.visibility.value }}
< / li >
{% endif %}
{% if object.is_from_outbox %}
{% if object.likes_count %}
< li >
< a href = "{{ object.url }}" > < strong > {{ object.likes_count }}< / strong > like{{ object.likes_count | pluralize }}< / a >
< / li >
{% endif %}
{% if object.announces_count %}
< li >
< a href = "{{ object.url }}" > < strong > {{ object.announces_count }}< / strong > share{{ object.announces_count | pluralize }}< / a >
< / li >
{% endif %}
2022-07-10 14:30:50 -05:00
2022-07-14 09:29:17 -05:00
{% if object.webmentions_count %}
2022-07-10 14:30:50 -05:00
< li >
2022-07-14 09:29:17 -05:00
< a href = "{{ object.url }}" > < strong > {{ object.webmentions_count }}< / strong > webmention{{ object.webmentions_count | pluralize }}< / a >
2022-07-10 14:30:50 -05:00
< / li >
{% endif %}
2022-07-09 01:15:33 -05:00
{% endif %}
{% if (object.is_from_outbox or is_admin) and object.replies_count %}
< li >
2022-07-09 01:38:01 -05:00
< a href = "{% if is_admin and not object.is_from_outbox %}{{ url_for(" admin_object " ) } } ? ap_id = {{ object . ap_id } } { % else % } { { object . url } } { % endif % } " > < strong > {{ object.replies_count }}< / strong > repl{{ object.replies_count | pluralize("y", "ies") }}< / a >
2022-07-09 01:15:33 -05:00
< / li >
{% endif %}
< / ul >
< / nav >
2022-07-14 12:05:45 -05:00
{% if is_admin and (object.is_from_outbox or object.is_from_inbox) %}
2022-07-09 01:15:33 -05:00
< nav class = "flexbox activity-bar" >
< ul >
{% if object.is_from_outbox %}
< li >
{{ admin_delete_button(object.ap_id) }}
< / li >
< li >
{% if object.is_pinned %}
2022-07-15 13:01:55 -05:00
{{ admin_unpin_button(object.ap_id, object.permalink_id) }}
2022-07-09 01:15:33 -05:00
{% else %}
2022-07-15 13:01:55 -05:00
{{ admin_pin_button(object.ap_id, object.permalink) }}
2022-07-09 01:15:33 -05:00
{% endif %}
< / li >
{% endif %}
< li >
{{ admin_reply_button(object.ap_id) }}
< / li >
< li >
{% if object.liked_via_outbox_object_ap_id %}
2022-07-15 13:01:55 -05:00
{{ admin_undo_button(object.liked_via_outbox_object_ap_id, "unlike", object.permalink_id) }}
2022-07-09 01:15:33 -05:00
{% else %}
2022-07-15 13:01:55 -05:00
{{ admin_like_button(object.ap_id, object.permalink_id) }}
2022-07-09 01:15:33 -05:00
{% endif %}
< / li >
< li >
{% if object.is_bookmarked %}
2022-07-15 13:01:55 -05:00
{{ admin_unbookmark_button(object.ap_id, object.permalink_id) }}
2022-07-09 01:15:33 -05:00
{% else %}
2022-07-15 13:01:55 -05:00
{{ admin_bookmark_button(object.ap_id, object.permalink_id) }}
2022-07-09 01:15:33 -05:00
{% endif %}
< / li >
< li >
{% if object.announced_via_outbox_object_ap_id %}
{{ admin_undo_button(object.liked_via_outbox_object_ap_id, "unshare") }}
{% else %}
2022-07-15 13:01:55 -05:00
{{ admin_announce_button(object.ap_id, disabled=object.visibility not in [visibility_enum.PUBLIC, visibility_enum.UNLISTED], permalink_id=object.permalink_id) }}
2022-07-09 01:15:33 -05:00
{% endif %}
< / li >
< li >
{{ admin_profile_button(object.actor.ap_id) }}
< / li >
< li >
{{ admin_expand_button(object.ap_id) }}
< / li >
< / ul >
< / nav >
{% endif %}
2022-07-10 14:30:50 -05:00
{% if likes or shares or webmentions %}
< div style = "display: flex;column-gap: 20px;flex-wrap: wrap;margin-top:20px;" >
2022-07-09 01:15:33 -05:00
{% if likes %}
2022-07-10 14:30:50 -05:00
< div style = "flex: 0 1 30%;max-width: 50%;" > Likes
2022-07-09 01:15:33 -05:00
< div style = "display: flex;column-gap: 20px;row-gap:20px;flex-wrap: wrap;margin-top:20px;" >
{% for like in likes %}
< a href = "{% if is_admin %}{{ url_for(" admin_profile " ) } } ? actor_id = {{ like . actor . ap_id } } { % else % } { { like . actor . url } } { % endif % } " title = "{{ like.actor.handle }}" style = "height:50px;" rel = "noreferrer" >
< img src = "{{ like.actor.resized_icon_url }}" alt = "{{ like.actor.handle}}" style = "max-width:50px;" >
< / a >
{% endfor %}
< / div >
< / div >
{% endif %}
{% if shares %}
2022-07-10 14:30:50 -05:00
< div style = "flex: 0 1 30%;max-width: 50%;" > Shares
2022-07-09 01:15:33 -05:00
< div style = "display: flex;column-gap: 20px;row-gap:20px;flex-wrap: wrap;margin-top:20px;" >
{% for share in shares %}
< a href = "{% if is_admin %}{{ url_for(" admin_profile " ) } } ? actor_id = {{ share . actor . ap_id } } { % else % } { { share . actor . url } } { % endif % } " title = "{{ share.actor.handle }}" style = "height:50px;" rel = "noreferrer" >
< img src = "{{ share.actor.resized_icon_url }}" alt = "{{ share.actor.handle}}" style = "max-width:50px;" >
< / a >
{% endfor %}
< / div >
< / div >
{% endif %}
2022-07-10 14:30:50 -05:00
{% if webmentions %}
< div style = "flex: 0 1 30%;max-width: 50%;" > Webmentions
< div style = "display: flex;column-gap: 20px;row-gap:20px;flex-wrap: wrap;margin-top:20px;" >
{% for webmention in webmentions %}
2022-07-14 09:29:17 -05:00
{% set wm = webmention.as_facepile_item %}
{% if wm %}
< a href = "{{ wm.url }}" title = "{{ wm.actor_name }}" style = "height:50px;" rel = "noreferrer" >
< img src = "{{ wm.actor_icon_url | media_proxy_url }}" alt = "{{ wm.actor_name }}" style = "max-width:50px;" >
< / a >
{% endif %}
2022-07-10 14:30:50 -05:00
{% endfor %}
< / div >
< / div >
{% endif %}
2022-06-29 15:20:15 -05:00
< / div >
2022-07-07 14:18:20 -05:00
{% endif %}
2022-06-29 15:20:15 -05:00
2022-07-09 01:15:33 -05:00
< / div >
{% endif %}
2022-06-25 03:20:07 -05:00
{% endmacro %}