mirror of
				https://github.com/MCV-Software/TWBlue.git
				synced 2025-10-31 12:12:01 +00:00 
			
		
		
		
	Feat: Open conversations from community timelines.
This commit is contained in:
		| @@ -6,6 +6,7 @@ TWBlue Changelog | ||||
|     * fixed an error that caused TWBlue to not display some posts correctly. | ||||
|     * Fixed name for community timelines when created during startup. Now it should be clear if it's a federated or local timeline. | ||||
|     * Defined shortcuts to fields on the update profile dialog so it will be easier to navigate. | ||||
|     * Now it is possible to load conversations directly from community timelines. | ||||
|  | ||||
| ## Changes in version 2024.5.19 | ||||
|  | ||||
|   | ||||
| @@ -130,7 +130,12 @@ class Handler(object): | ||||
|             pub.sendMessage("buffer-title-changed", buffer=buffer) | ||||
|  | ||||
|     def open_conversation(self, controller, buffer): | ||||
|         post = buffer.get_item() | ||||
|         # detect if we are in a community buffer. | ||||
|         # Community buffers are special because we'll need to retrieve the object locally at first. | ||||
|         if hasattr(buffer, "community_url"): | ||||
|             post = buffer.get_item_from_instance() | ||||
|         else: | ||||
|             post = buffer.get_item() | ||||
|         if post.reblog != None: | ||||
|             post = post.reblog | ||||
|         conversations_position =controller.view.search("direct_messages", buffer.session.get_name()) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user