mirror of
				https://git.sr.ht/~tsileo/microblog.pub
				synced 2025-06-05 21:59:23 +02:00 
			
		
		
		
	Fix admin in reply to link
This commit is contained in:
		| @@ -208,6 +208,13 @@ class Object: | |||||||
|     def in_reply_to(self) -> str | None: |     def in_reply_to(self) -> str | None: | ||||||
|         return self.ap_object.get("inReplyTo") |         return self.ap_object.get("inReplyTo") | ||||||
|  |  | ||||||
|  |     @property | ||||||
|  |     def is_in_reply_to_from_inbox(self) -> bool | None: | ||||||
|  |         if not self.in_reply_to: | ||||||
|  |             return None | ||||||
|  |  | ||||||
|  |         return not self.in_reply_to.startswith(LOCAL_ACTOR.ap_id) | ||||||
|  |  | ||||||
|     @property |     @property | ||||||
|     def has_ld_signature(self) -> bool: |     def has_ld_signature(self) -> bool: | ||||||
|         return bool(self.ap_object.get("signature")) |         return bool(self.ap_object.get("signature")) | ||||||
|   | |||||||
| @@ -365,7 +365,7 @@ | |||||||
|     {% endif %} |     {% endif %} | ||||||
|  |  | ||||||
|     {% if object.in_reply_to %} |     {% if object.in_reply_to %} | ||||||
|     <a href="{% if is_admin and object.is_from_inbox %}{{ url_for("get_lookup") }}?query={% endif %}{{ object.in_reply_to }}" title="{{ object.in_reply_to }}" class="in-reply-to" rel="nofollow"> |     <a href="{% if is_admin and object.is_in_reply_to_from_inbox %}{{ 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) }} |             in reply to {{ object.in_reply_to|truncate(64, True) }} | ||||||
|         </a> |         </a> | ||||||
|     {% endif %} |     {% endif %} | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user