Fix: Open actions dialogue from followers and following buffers. Closes #575

This commit is contained in:
Manuel Cortez 2024-02-07 12:04:24 -06:00
parent 04853165b3
commit 9f80891e1d
No known key found for this signature in database
GPG Key ID: 9E0735CA15EFE790
2 changed files with 10 additions and 1 deletions

View File

@ -2,6 +2,11 @@ TWBlue Changelog
## changes in this version
* Mastodon:
* Fixed an error that caused TWBlue to be unable to properly display the user action dialog from the followers or following buffer. ([#575](https://github.com/mcv-software/twblue/issues/575))
## changes in version 2024.01.05
* Core:
* The TWBlue website will no longer be available on the twblue.es domain. Beginning in January 2024, TWBlue will live at https://twblue.mcvsoftware.com. Also, we will start releasing versions on [gitHub releases](https://github.com/mcv-software/twblue/releases) so it will be easier to track specific versions.
* As of the first release of TWBlue in 2024, we will officially stop generating 32-bit (X86) compatible binaries due to the increasing difficulty of generating versions compatible with this architecture in modern Python.

View File

@ -151,7 +151,11 @@ class Handler(object):
users.insert(0, status.reblog.account.acct)
else:
users = [user.acct for user in status.mentions if user.id != buffer.session.db["user_id"]]
if item.account.acct not in users:
if hasattr(item, "account"):
acct = item.account.acct
else:
acct = item.acct
if acct not in users:
users.insert(0, item.account.acct)
u = userActions.userActions(buffer.session, users)