Skip to content

Commit

Permalink
Merge pull request #78 from ItsVipra/77-profile-type-error
Browse files Browse the repository at this point in the history
Fix type error in Mastodon v4.3+
  • Loading branch information
ItsVipra authored May 23, 2024
2 parents 6e94b24 + 5af0bef commit a9e7400
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
5 changes: 4 additions & 1 deletion src/content_scripts/protoots.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,10 @@ function main() {
hasClasses(
n,
"detailed-status",
"status",
"status-public",
"status-unlisted",
"status-private",
"status-direct",
"conversation",
"account-authorize",
"notification",
Expand Down
5 changes: 4 additions & 1 deletion src/libs/protootshelpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,10 @@ export function addTypeAttribute(ActionElement) {
} else if (hasClasses(ActionElement, "notification", "notification__message")) {
ActionElement.setAttribute("protoots-type", "notification");
ActionElement.closest("article").setAttribute("protoots-type", "notification");
} else if (hasClasses(ActionElement, "account")) {
} else if (
hasClasses(ActionElement, "account") &&
!hasClasses(ActionElement, "account--minimal")
) {
ActionElement.setAttribute("protoots-type", "account");
ActionElement.closest("article").setAttribute("protoots-type", "account");
}
Expand Down
2 changes: 1 addition & 1 deletion src/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"manifest_version": 2,
"name": "ProToots",
"version": "1.2.2",
"version": "1.2.3",

"icons": {
"48": "icons/icon small_size/icon small_size.png",
Expand Down

0 comments on commit a9e7400

Please sign in to comment.