mirror of
https://github.com/MCV-Software/TWBlue.git
synced 2024-11-22 11:18:08 -06:00
Feat: Open conversations from community timelines.
This commit is contained in:
parent
49c32ad4b8
commit
68651ff736
@ -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,6 +130,11 @@ class Handler(object):
|
||||
pub.sendMessage("buffer-title-changed", buffer=buffer)
|
||||
|
||||
def open_conversation(self, controller, buffer):
|
||||
# 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
|
||||
|
Loading…
Reference in New Issue
Block a user